转换markdown格式的文件成pdf文件.
运行容器:
$ docker run -it -w /docs -v /tmp/docs:/docs --rm wanglet/mdtopdf bash
转换文档:
$ pandoc -N -s --toc --smart --latex-engine=xelatex -V CJKmainfont='PingFang SC' -V mainfont='Monaco' -V geometry:margin=1in test.md -o test.pdf
# 参数说明:
# --toc 带书签的PDF
# --latex-engine=xelatex -V CJKmainfont='PingFang SC' -V mainfont='Monaco' 指定中文字体
Content type
Image
Digest
Size
1 GB
Last updated
over 8 years ago
docker pull wanglet/mdtopdf