Markdown to PDF — Export Your Documents
Turn Markdown into PDF. Edit in Lexon, use print to PDF. LaTeX math, code blocks, and tables are supported.
How it works
- Open or create a document in the Lexon editor.
- Use the export menu or Ctrl+P (Cmd+P on Mac) to open the print dialog.
- Select "Save as PDF" or "Print to PDF" as the destination.
- Adjust margins and options if needed, then save.
Why export Markdown to PDF?
Markdown is great for writing; PDF is great for sharing and printing. Exporting to PDF lets you send reports, notes, or documentation in a format everyone can open. Lexon renders your Markdown—including LaTeX equations and code blocks—before printing, so the PDF looks correct.
You can also export to HTML and open that in a browser to print. For documents with complex layouts, HTML export gives you more control over styling before converting to PDF.
What is included in the PDF?
- Headings, paragraphs, lists
- Tables (Markdown pipe tables)
- LaTeX math (via KaTeX)
- Syntax-highlighted code blocks
- Images (if embedded in the document)
For documents with math and code, use the Markdown editor with LaTeX. For source content, you can convert DOCX to Markdown first, then export to PDF.
Frequently asked questions
- How do I export Markdown to PDF?
- Open your document in Lexon, use the export/print option, then choose "Save as PDF" in the print dialog.
- Does PDF export support LaTeX math?
- Yes. KaTeX-rendered math is included when you print or export to PDF.
- Can I customize the PDF layout?
- Use your browser's print dialog. Adjust margins, orientation, and scale before saving as PDF.
- Is the PDF export free?
- Yes. Lexon is free. PDF export uses the browser's built-in print-to-PDF.
- Does it work offline?
- Yes. Export to PDF works offline once Lexon is loaded.
- What about images in my Markdown?
- Images embedded in your document are included in the PDF when you print.
