大量的更新

This commit is contained in:
zeaslity
2025-11-20 16:18:35 +08:00
parent 776c946772
commit fc72a7312e
30 changed files with 8755 additions and 1327 deletions

View File

@@ -0,0 +1,4 @@
#pandoc perplexity.md --from markdown+pipe_tables+fenced_code_blocks+fenced_code_attributes --to epub3 --filter mermaid-filter.cmd --epub-embed-font="C:\\Users\\wddsh\\Documents\\IdeaProjects\\ProjectAGiPrompt\\0-pandoc电子书转换\\fonts\\SourceHanSansCN-Medium.otf" --css="epub-style.css" --syntax-highlighting=pygments --standalone --toc --toc-depth=3 --output output.epub
pandoc perplexity.md -f markdown -t pdf -o output.pdf --pdf-engine=xelatex -V geometry:margin=0.5in --syntax-highlighting=kate --filter=mermaid-filter.cmd --standalone --table-of-contents --number-sections

View File

@@ -0,0 +1,66 @@
@font-face {
font-family: "Source Han Sans CN";
font-style: normal;
font-weight: 500;
src: url("C:\\Users\\wddsh\\Documents\\IdeaProjects\\ProjectAGiPrompt\\0-pandoc电子书转换\\fonts\\SourceHanSansCN-Medium.otf");
}
body {
font-family: "Source Han Sans CN", sans-serif;
font-size: 1.2em;
line-height: 1.6;
margin: 0;
padding: 1em;
}
/* 表格样式 */
table {
border-collapse: collapse;
width: 100%;
margin: 1em 0;
}
th, td {
border: 1px solid #ddd;
padding: 8px 12px;
text-align: left;
}
th {
background-color: #f5f5f5;
font-weight: bold;
}
tr:nth-child(even) {
background-color: #f9f9f9;
}
/* 代码块样式 */
pre {
background-color: #f4f4f4;
border: 1px solid #ddd;
border-radius: 4px;
padding: 1em;
overflow-x: auto;
margin: 1em 0;
}
code {
font-family: "Courier New", monospace;
background-color: #f4f4f4;
padding: 2px 4px;
border-radius: 2px;
}
pre code {
background-color: transparent;
padding: 0;
}
/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
font-family: "Source Han Sans CN", sans-serif;
font-weight: bold;
margin-top: 1.5em;
margin-bottom: 0.5em;
}

Binary file not shown.

View File

@@ -0,0 +1,9 @@
\documentclass{article}
\usepackage{xeCJK}
\setCJKmainfont{C:\Users\wddsh\Documents\IdeaProjects\ProjectAGiPrompt\0-pandoc\fonts\SourceHanSansCN-Medium.otf}
\usepackage{geometry}
\geometry{margin=0.5in}
\usepackage{listings}
\usepackage{xcolor}
\usepackage{longtable}
\usepackage{booktabs}

View File

@@ -0,0 +1,7 @@
pandoc C:\Users\wddsh\Documents\IdeaProjects\ProjectAGiPrompt\0-pandoc\perplexity.md -f markdown -t pdf -o output.pdf --pdf-engine=xelatex --syntax-highlighting=kate --filter=mermaid-filter.cmd --standalone -V CJKmainfont="C:/Users/wddsh/Documents/IdeaProjects/ProjectAGiPrompt/0-pandoc/fonts/SourceHanSansCN-Medium.otf" -V CJKsansfont="C:/Users/wddsh/Documents/IdeaProjects/ProjectAGiPrompt/0-pandoc/fonts/SourceHanSansCN-Medium.otf" -V CJKmonofont="C:/Users/wddsh/Documents/IdeaProjects/ProjectAGiPrompt/0-pandoc/fonts/SourceHanSansCN-Medium.otf" --variable=CJKoptions:BoldFont="C:/Users/wddsh/Documents/IdeaProjects/ProjectAGiPrompt/0-pandoc/fonts/SourceHanSansCN-Medium.otf" --variable=numbersections:false --variable=secnumdepth:0

View File

@@ -0,0 +1,17 @@
在windows系统中使用pandoc将一个markdown文件转换为epub文件请基于如下的条件转换
1. 完整保留markdown的语法去除掉特殊符号
2. epub中的字体使用思源黑体CN-Medium
3. markdown中的表格注意在epub中有合适的表格结构
4. markdown中的mermaid图像请解析为合适的图片嵌入至epub中
5. markdown中的代码块请合理的解析在epub中有引用或者突出显示
请基于上面的要求,给出转换命令
在windows系统中使用pandoc将一个markdown文件转换为pdf文件请基于如下的条件转换
1. 完整的解析markdown渲染后的全部格式去除掉特殊符号
2. pdf的页边距使用窄边距
3. markdown中的代码块、表格需要被正确的渲染
4. markdown中的mermaid图像需要被正确的渲染
请基于上面的要求,给出转换命令