首页Home › PDF 工具PDF Tools

📑 Markdown 转 PDF(MD 转 PDF)Markdown to PDF Converter

把 Markdown(.md)转换为排版整洁的 PDF:支持标题、粗斜体、删除线、有序/无序/任务列表、引用、代码块、GFM 表格、链接(PDF 中可点击)和图片,中文自动嵌入思源黑体,可设置纸张、字号、页边距和页码;图片可与 .md 一起选择,或选择加载网络图片,全程本地生成。Turn Markdown (.md) into a clean PDF with headings, bold/italic, strikethrough, ordered, bulleted and task lists, block quotes, code blocks, GFM tables, links (clickable in the PDF) and images. Chinese, Japanese and Korean text gets an embedded Noto Sans CJK font. Set the paper, font size, margins and page numbers; add images by selecting them with the .md file or by loading web images. Everything is generated locally.

点击选择或拖放 .md 文件(可同时选择文中的图片),或在下方输入Click or drop a .md file (plus any images it uses), or type below

使用说明与常见问题How-to & FAQ

「Markdown 转 PDF(MD 转 PDF)」是什么?What is the Markdown to PDF Converter tool?

把 Markdown(.md)转换为排版整洁的 PDF:支持标题、粗斜体、删除线、有序/无序/任务列表、引用、代码块、GFM 表格、链接(PDF 中可点击)和图片,中文自动嵌入思源黑体,可设置纸张、字号、页边距和页码;图片可与 .md 一起选择,或选择加载网络图片,全程本地生成。Turn Markdown (.md) into a clean PDF with headings, bold/italic, strikethrough, ordered, bulleted and task lists, block quotes, code blocks, GFM tables, links (clickable in the PDF) and images. Chinese, Japanese and Korean text gets an embedded Noto Sans CJK font. Set the paper, font size, margins and page numbers; add images by selecting them with the .md file or by loading web images. Everything is generated locally.

如何使用「Markdown 转 PDF(MD 转 PDF)」?How do I use the Markdown to PDF Converter tool?

在「Markdown 转 PDF(MD 转 PDF)」中,选择或拖入文件,按需设置「纸张」、「正文字号」、「页边距 (mm)」等选项,然后点击「生成 PDF」按钮即可。In the Markdown to PDF Converter: Choose or drop your files, set "Paper", "Body size", "Margin (mm)", then click "Create PDF".

支持哪些 Markdown 语法?Which Markdown syntax is supported?

支持 CommonMark 和 GitHub 风格(GFM)的常用语法:# 标题、**粗体**、*斜体*、~~删除线~~、`行内代码`、代码块、有序/无序列表和嵌套列表、任务列表 [x]、> 引用、--- 分隔线、表格(含列对齐)、链接和图片。HTML 标签不会渲染(<br> 换行和 <b>/<i> 除外),完成时会提示忽略了多少处;数学公式和 Mermaid 图表会按原文显示。The common CommonMark and GitHub-flavoured (GFM) syntax: # headings, **bold**, *italic*, ~~strikethrough~~, `inline code`, code blocks, ordered, bulleted and nested lists, task lists [x], > quotes, --- rules, tables (with column alignment), links and images. HTML tags aren't rendered (except <br> and <b>/<i>), and the result tells you how many were ignored; math formulas and Mermaid diagrams are shown as plain source.

Markdown 里的图片为什么没有显示?Why don't the images in my Markdown appear?

有三种图片来源:写在 Markdown 里的 data:image 内嵌图片会直接显示;./img/pic.png 这样的本地路径,需要在选择 .md 时把这些图片文件一起选上(或拖进来),工具按文件名匹配;https:// 网络图片默认不加载,勾选“加载网络图片”后浏览器会去下载,但只有允许跨域访问的网站(如 GitHub raw、多数图床)才能成功。没能显示的图片数量会在完成时提示。There are three kinds of image: data:image images embedded in the Markdown always appear. Local paths like ./img/pic.png need the image files to be selected (or dropped) together with the .md file — they're matched by file name. https:// web images aren't loaded by default; tick Load web images and the browser downloads them, which only works on sites that allow cross-origin access (GitHub raw and most image hosts do). The number of images that couldn't be shown is reported.

中文、日文会显示成方框吗?Will Chinese or Japanese text show as boxes?

不会。检测到中日韩文字时,工具会从本站加载思源黑体(Noto Sans CJK)并只嵌入用到的字形,PDF 在任何设备上都能正确显示,文字也可以复制和搜索。纯英文文档使用 PDF 标准字体,文件更小。少数生僻符号或表情字体不包含,会显示为“?”并在完成时列出。No. When Chinese, Japanese or Korean text is found, the tool loads Noto Sans CJK from this site and embeds only the glyphs used, so the PDF displays correctly everywhere and the text stays copyable and searchable. English-only documents use the standard PDF fonts and stay small. A few rare symbols and emoji aren't in the font; they appear as "?" and are listed when the PDF is done.

PDF 里的链接能点击吗?Are links clickable in the PDF?

能。[文字](https://…) 形式的链接会生成 PDF 链接注释,在阅读器里点击即可打开网页;代码块使用等宽字体并带浅灰底色,表格带边框,跨页的长表格和代码块会自动续排到下一页。Yes. [text](https://…) links become PDF link annotations that open the page when clicked in a reader. Code blocks use a monospace font on a light grey background, tables get borders, and long tables and code blocks continue onto the next page automatically.

文件和网络图片会经过本站服务器吗?Do my file or the web images go through this site's server?

不会。Markdown 在浏览器里解析和排版,PDF 也在本地生成;勾选“加载网络图片”时,你的浏览器会直接向图片所在网站请求图片(不带 Cookie 和来源页),不经过本站。No. The Markdown is parsed and laid out in your browser and the PDF is created locally. If you tick Load web images, your browser requests each image directly from the site hosting it (without cookies or a referrer), not through this site.

「Markdown 转 PDF(MD 转 PDF)」免费吗?需要注册吗?Is the Markdown to PDF Converter free? Do I need an account?

「Markdown 转 PDF(MD 转 PDF)」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Markdown to PDF Converter is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.

相关工具Related tools

📐 DXF 转 PDF(CAD 图纸转 PDF)DXF to PDF Converter📚 PDF 合并Merge PDF✂️ PDF 拆分Split PDF📑 PDF 提取页面Extract PDF Pages🗑️ PDF 删除页面Delete PDF Pages🔄 PDF 旋转Rotate PDF🔲 PDF 裁剪Crop PDF🧱 PDF 扁平化Flatten PDF🏷️ PDF 元数据编辑Edit PDF Metadata🔓 PDF 解除密码Unlock PDF🔐 PDF 加密Protect PDF with Password🗜️ PDF 压缩Compress PDF

← 全部工具All tools