How to convert Markdown to PDF without garbled Chinese characters

Updated

Short answer: most Markdown exporters render the page in a browser engine and print it. If the fonts on that machine have no Chinese glyphs, you get empty boxes (□), question marks or mixed fallback fonts. md-to-pdf-word typesets the document with Chinese fonts embedded in the PDF, so it looks the same everywhere.

Why Chinese breaks in PDF exports

Convert in three steps

  1. Open the Markdown to PDF converter and drop your .md file. If it uses local images or a .bib file, drop the whole folder so relative paths like images/chart.png still work — the page lists anything missing before you convert.
  2. Choose a style (Business is a safe default) and, if you like, a table of contents under More options.
  3. Click Convert and download the PDF. A typical report takes under 20 seconds.

What you get

Chinese font sizes and fonts

You can use the traditional Chinese size names directly:

[重点内容]{size=四号 font=黑体 color=red}

size= accepts 初号 to 六号 (and 12pt, 16px); font= accepts 宋体, 黑体, 楷体 and 仿宋. See the writing syntax for everything else.

Common questions

Do I need to install fonts? No. Fonts are part of the PDF.

Will my file be stored? Only for the conversion; it is deleted automatically after 2 hours, or immediately when you click Delete from server.

Can I get a Word file as well? Yes — choose PDF + Word.

Writing syntax

Open as a page

Loading…

Send feedback

Tell us what went wrong or what would make this better. We read every message.

Prefer another way? Email · GitHub