解决 Pandoc 导出的问题

Pandoc 导出

解决方案如下:

/opt/homebrew/bin/pandoc -f markdown --resource-path="/Users/lincolnmac16/Documents/LincolnStorageForObsidianSync/Python-100-Days/Day01-15" --resource-path="/Users/lincolnmac16/Documents/LincolnStorageForObsidianSync" --lua-filter="/Users/lincolnmac16/Documents/LincolnStorageForObsidianSync/.obsidian/plugins/obsidian-enhancing-export/lua/pdf.lua" --embed-resources --standalone --metadata title="01.初识Python" -s -o "/Users/lincolnmac16/Downloads/01.初识Python.pdf" -t pdf  "/Users/lincolnmac16/Documents/LincolnStorageForObsidianSync/Python-100-Days/Day01-15/01.初识Python.md" --pdf-engine=xelatex -V CJKmainfont="Source Han Sans CN Normal"

特别是当中的

--pdf-engine=xelatex -V CJKmainfont="Source Han Sans CN Normal"

如果要查看本地支持的字体的话,可以使用

fc-list :lang=zh

之后会分享更多的内容给大家。