Markdown a PDF: la forma rápida (y las demás)
Si solo necesitas un PDF y seguir adelante, abre /markdown-to-pdf, pega tu Markdown y haz clic en PDF. La salida conserva títulos, resaltado de código, tablas, fórmulas y diagramas Mermaid. No hay que instalar nada, ni configurar plantillas, ni usar la línea de comandos — funciona en cualquier navegador.
Esa es la vía rápida. El resto de la guía explica por qué importa el paso Markdown → PDF, qué esperar de la salida y dónde encajan las otras cuatro alternativas habituales (Pandoc, plugins de VSCode, impresión del navegador, CLI).
Markdown es genial para autores y revisores — amigable con Git, sintaxis ligera, fácil de diff. Pero al salir del círculo de ingeniería, la audiencia cambia:
- Los stakeholders necesitan layout estable. Un Markdown renderizado en VS Code se ve distinto al pegarlo en Notion o un chat. El PDF congela el diseño, así los números de página no cambian entre máquinas.
- Compliance y compras quieren marcas de tiempo. Muchos flujos de auditoría exigen un PDF fechado. Una vez que lo tienes, lo adjuntas a un ticket, una compra o un dossier sin tener que explicar nada.
- Sigue habiendo revisores en papel y offline. Sorprende cuántos clientes, abogados y operadores anotan sobre papel. El PDF es la lengua franca.
- Compartir en móvil. Los PDF se abren nativamente en visores de iOS y Android sin plugin de Markdown.
Si entregas notas de versión, un SLA, una respuesta a RFP o un informe a cliente, lo que entregas suele ser el PDF — no el Markdown.
Nuestro convertidor de Markdown a PDF usa un motor real de Chromium en modo headless, así que la vista previa es exactamente lo que obtendrás en el archivo:
- Pega o suelta un archivo
.md. Soporta arrastrar y soltar; límite de 1 MB por archivo. - Ajusta tema, fuente y ancho en el panel derecho. Los temas claro y oscuro exportan ambos. Si tu público va a imprimir, elige un ancho cercano a A4.
- Haz clic en PDF. Se descarga el archivo. La salida gratuita lleva marca de agua; los usuarios gratuitos con sesión iniciada tienen actualmente cinco exportaciones sin marca en total.
Lo que se conserva automáticamente:
- Títulos, listas, tablas, citas, enlaces
- Bloques de código cercados con resaltado de sintaxis para cualquier lenguaje habitual
códigoen línea y código indentado- Imágenes incrustadas (data URI y URL remotas)
- Fórmulas KaTeX:
$$\int_0^1 x^2\,dx$$se renderiza como ecuación tipográfica - Diagramas Mermaid: bloques
```mermaidblocks render as SVG inside the PDF - Task lists (
- [x]/- [ ])
| Method | Best fit | Main tradeoff |
|---|---|---|
/markdown-to-pdf | One-off documents with code, math, and diagrams | 1 MB input; free output rules apply |
| Pandoc | Citations, books, controlled templates | Requires a PDF engine and template work |
| VS Code Markdown PDF | Exporting from the editor | Rendering depends on extension settings |
| Browser print | A page already rendered correctly | Print CSS and page breaks vary |
md-to-pdf | Scripts and CI | Requires Node.js and a browser runtime |
Use the five-method comparison when you need a deeper tool choice. Avoid deciding from claimed install sizes or stopwatch figures: both change with platform, cache, and release.
- Keep tables narrow enough for the chosen paper size.
- Use high-resolution raster images or SVG for printed output.
- Replace fragile relative image paths or configure the renderer's resource path.
- Test one KaTeX block and one Mermaid diagram before exporting a long document.
- Inspect the downloaded PDF for page breaks, clipped code, missing fonts, and link targets.
For syntax colors, use the current option for each tool. Pandoc documents --syntax-highlighting; VS Code Markdown PDF uses markdown-pdf.highlightStyle; md-to-pdf uses --highlight-style. See the code-highlighting guide.
The current hosted converter accepts up to 1 MB of Markdown input and renders PDF with server-side Chromium. It supports code highlighting, KaTeX, Mermaid, tables, images, and task lists. Free PDF output includes a watermark; signed-in free users currently receive five watermark-free exports in total.
Server-side rendering means sensitive files leave the local browser for processing. Review the live privacy and retention terms before submitting confidential material.
Can I use it without installing software? Yes. The hosted path only needs a browser.
Can I combine several Markdown files? The web flow is single-file. For repeatable N-to-N or N-to-one jobs, use the batch conversion guide.
Will code, math, and Mermaid survive? They are supported, but always test your exact theme, fonts, remote images, and diagram syntax.
Use the web converter for an occasional document, Pandoc for citation-heavy publishing, VS Code for editor-centric export, and md-to-pdf for automation. The best method is the one you can reproduce and verify, not the one with the most aggressive speed claim.
Use this small fixture before exporting a long document:
# Export check
- [x] Task list
- [ ] Second item
| Feature | Status |
|---|---|
| Code | Ready |
| Math | Test |
Los límites y comandos anteriores se comprobaron con estas fuentes primarias actuales:
Abre MarkdownToImage, renderiza Markdown y elige el formato adecuado. Antes de automatizar un lote, prueba un documento representativo.