Markdown to LaTeX, explained
Get a standalone .tex file you can compile with pdfLaTeX, XeLaTeX or LuaLaTeX, or upload to Overleaf. It is a good way to start a paper from notes written in Markdown.
What is converted, and how
- Headings
\section,\subsectionand so on.- Emphasis
\emphand\textbf.- Math
$...$becomes real LaTeX math.- Tables
longtablewith horizontal rules, so long tables can break across pages.- Code
- Verbatim blocks, highlighted when you name the language.
- Links and footnotes
\href(hyperref) and\footnote.- Front matter
- YAML
title,authoranddatefeed\maketitle.
Limitations
- Images become
\includegraphicscommands that point to the original path. Put the image files next to the .tex file before you compile. - Raw HTML is left out.
Tips
- Change the layout from the front matter, for example
documentclass: report,fontsize: 12ptorgeometry: margin=2cm. - For non-Latin scripts, compile with XeLaTeX or LuaLaTeX. In Overleaf you can change the compiler under Menu → Settings.
- Not sure about the syntax? See the Markdown cheat sheet.
Other formats
- Markdown to PDFA4, clean typography, syntax-highlighted code.
- Markdown to WordHeadings map to Word heading styles, so the navigation pane works.
- Markdown to ExcelEach table becomes a sheet named after the heading above it. Numbers stay numbers. No tables? One paragraph per row.
- Markdown to PowerPointEvery heading starts a new slide.
- Markdown to ODTOpenDocument Text for LibreOffice Writer, with real heading styles.
- Markdown to RTFOpens almost everywhere, including WordPad and TextEdit.
- Markdown to EPUBTop-level headings become chapters.
- Markdown to HTMLSingle standalone page with styles inlined.
- Markdown to Plain textMarkdown syntax removed, structure kept readable.