Skip to content

Instantly share code, notes, and snippets.

@drewzhao
drewzhao / rendering-chinese-in-MPE-exported-plantuml-png.md
Last active May 25, 2022 14:47
Markdown Preview Enhanced + Pandoc + PlantUML: How to Render Chinese Characters in Plantuml converted PNGs

Markdown Preview Enhanced + Pandoc + PlantUML: How to Render Chinese Characters in Plantuml converted PNGs

For a work project I have to use Markdown Preview Enhanced (a vs code extension) to export a long Markdown document to MS Word. The Markdown file is an API doc written in Chinese with lots of plantuml code blocks.

Everything works fine except the Chinese characters in the plantuml code blocks. Those characters render as empty block in the converted PNG files in the final MS word output. You can refer to the issue here: https://github.com/shd101wyy/markdown-preview-enhanced/issues/1611

Where I started

MacOS 12.1 + VS Code