When I use pandoc to convert markdown to pdf on Windows. The command below fails and give me an error message.
I get a blank document when I try to convert a markdown document in Chinese to pdf using pandoc -o test. Pandoc -s -f markdown -t icml -o my.icml my.md. Pandoc -from markdown -o output.pdf my-file.md. Pdf PORT=8971 DELAY=10 printf 'Converting $MD to $PDF on port $PORTn' printf 'Waiting $DELAY seconds. At GitHub, we’re building the text editor we’ve always wanted: hackable to the core, but approachable on the first day without ever touching a config file. We can’t wait to see what you build with it. Thin wrapper for pandoc. A pandoc LaTeX template to convert markdown files to PDF or LaTeX. Wandmalfarbe/pandoc-latex-template.
Typing the command below and then convert again will work.
Picture in wrong position
The pictures in output all goes to the end of the file. The command below fixes it.
Ugly code blocks
Using Eisvogel can output beautiful code blocks by the command below after installing the template.
Chinese
Find the available font, then execute the code below with the font you want.
Chinese auto-wrap (instead of slicing)
Full command
Download pandoc template Eisvogel.
Pandoc Md To Pdf Converter
Further research
Pandoc Md To Pdf Conversion
Someday I’ll have a test on code highlighting. Pandoc: What are the available syntax highlighters?.