La API pública está disponible. Convierte Markdown a imágenes con 50 solicitudes con marca de agua al mes.
Volver al Blog
domingo, 2 de agosto de 2026

Markdown a PDF: la forma rápida (y las demás)

Markdown a PDF: la forma rápida (y las demás)

Convierte Markdown a PDF en 30 segundos

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).

Por qué convertir Markdown a PDF

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.

El método más rápido: /markdown-to-pdf

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:

  1. Pega o suelta un archivo .md. Soporta arrastrar y soltar; límite de 1 MB por archivo.
  2. 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.
  3. 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ódigo en 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 ```mermaid blocks render as SVG inside the PDF
  • Task lists (- [x] / - [ ])

Compare the other methods

MethodBest fitMain tradeoff
/markdown-to-pdfOne-off documents with code, math, and diagrams1 MB input; free output rules apply
PandocCitations, books, controlled templatesRequires a PDF engine and template work
VS Code Markdown PDFExporting from the editorRendering depends on extension settings
Browser printA page already rendered correctlyPrint CSS and page breaks vary
md-to-pdfScripts and CIRequires 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.

Prepare a reliable export

  1. Keep tables narrow enough for the chosen paper size.
  2. Use high-resolution raster images or SVG for printed output.
  3. Replace fragile relative image paths or configure the renderer's resource path.
  4. Test one KaTeX block and one Mermaid diagram before exporting a long document.
  5. 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.

Know the hosted limits

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.

Frequently asked questions

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.

Choose by workflow

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.

Minimal rendering test

Use this small fixture before exporting a long document:

# Export check

- [x] Task list
- [ ] Second item

| Feature | Status |
|---|---|
| Code | Ready |
| Math | Test |

Fuentes verificadas para esta actualización

Los límites y comandos anteriores se comprobaron con estas fuentes primarias actuales:

Prueba el flujo

Abre MarkdownToImage, renderiza Markdown y elige el formato adecuado. Antes de automatizar un lote, prueba un documento representativo.

Markdown a PDF: 5 métodos | Markdown2Image | MarkdownToImage