SlopScore
00 crowd

ai-markdown-to-pdf

Convert AI-generated Markdown files to polished PDFs with Mermaid diagrams rendered as real SVG graphics. Perfect for Cursor, Copilot, and ChatGPT plans
Open repo on GitHub Open the demogithub.com/jcendal/ai-markdown-to-pdf
TypeScript · ★ 2 · 0 forks · MIT · paperwork by the Cap'mmostly ai (inferred)light human (inferred)works-on-my-machine (inferred)extension🤖 cursor
listed 1 hour ago by jcendal · last checked 1 hour ago
The owner didn't write this. This repo never submitted itself. The Cap'm found it on a truffle trawl and wrote its paperwork from what GitHub already shows. Picked by hand by the Cap'm on 2026-09-15: Convert AI-generated Markdown files to polished PDFs with Mermaid diagrams rendered as real SVG graphics. Perf; its own README says "From a Cursor Plan When working with a plan generated by Cursor (". 2 stars; MIT license. The owner did not submit this. Votes count; awards don't until the owner claims it.

I'm not calling your project slop! Geeze, it's a joke... Do you own this repo?

Log in with GitHub as jcendal. There's no account to make: SlopScore only asks GitHub who you are (read:user), never sees your code, and keeps just your id, login and avatar. Then you can:

  • Keep it, on your terms. Commit your own slopscore.md (spec) and press Refresh. Your paperwork replaces the Cap'm's, and you can submit it for Slop of the Day.
  • Take it down. One click on Remove. It stays gone; the trawl never brings it back.

Log in with GitHub

Can't log in as the owner? Request a takedown. No login needed, and a trawled listing comes down right away.

GitHub says
Convert AI-generated Markdown files to polished PDFs with Mermaid diagrams rendered as real SVG graphics. Perfect for Cursor, Copilot, and ChatGPT plans
website
https://open-vsx.org/extension/jcendal/ai-markdown-to-pdf
topics
cursorexportmarkdownmermaidpdfvscodevscode-extension
created
2026-08-04 · pushed 1 month ago · 21 commits · 2 contributors
release
v1.0.4 · 2026-08-05
languages
TypeScript 95%JavaScript 5%
paperwork
licensereadme 42% health
dependencies
no dependency graph (no manifest, or disabled) · OSV.dev, checked 1 hour ago

Disclosures, inferred by the Cap'm

slopbucket
vibe-coded
category
extension
ai_generated
mostly
human_touch
light
status
works-on-my-machine
built_with
cursor
language (detected)
javascripttypescript
topic (detected)
cursorexportmarkdownmermaidpdfvscodevscode-extension
license (detected)
mit

The Cap'm's log

The Cap'm wrote this paperwork, not the owner. This repo never submitted itself to SlopScore. The Cap'm picked it by hand: Convert AI-generated Markdown files to polished PDFs with Mermaid diagrams rendered as real SVG graphics. Perf; its own README says "From a Cursor Plan When working with a plan generated by Cursor (". It carries the MIT license. The disclosures above are his best guess from what GitHub shows.

Is this yours? Commit a real slopscore.md and press Refresh to replace this, or remove the listing in one click. There's no account to make: you log in with GitHub.

README — the repo's own words, folded up so the grading fits on one screen

AI Markdown to PDF

Convert AI-generated Markdown files to polished PDFs — with diagrams rendered as real SVG graphics

Version Downloads Rating License

FeaturesInstallationUsageExamplesSettingsHow It Works

Install in VS Code / Cursor    Install from Open VSX


📖 About

AI assistants like Cursor, GitHub Copilot, and ChatGPT generate beautiful Markdown plans, specs, and documentation — often with Mermaid diagrams for architecture, flows, and sequences. But when you export them to PDF, diagrams appear as plain text.

This extension fixes that. It renders every Mermaid diagram as a real vector graphic before printing, so your AI-generated documents look professional in PDF form.

🎯 Key Highlights

  • 🤖 Made for AI workflows — Perfect for Cursor plans, Copilot specs, ChatGPT docs
  • 📊 Real SVG rendering — Mermaid diagrams are actual graphics, not text
  • 🎨 GitHub-flavored styling — Tables, code blocks, blockquotes, task lists
  • 📄 Page numbers — Configurable footer with current / total pages
  • ⚙️ Fully configurable — Page size, orientation, margins, font size
  • 🔒 Privacy-first — Everything runs locally, no data leaves your machine
  • 🖥️ No bundled browser — Uses your installed Chrome/Chromium

✨ Features

Feature Description
Mermaid diagrams Flowcharts, sequence, class, state, Gantt, ER, pie, mindmaps — all as SVG
GitHub styling Tables, fenced code blocks with syntax highlighting, blockquotes, task lists
Page numbers Configurable footer with current / total pages
YAML front matter Automatically stripped from output
Multiple page sizes A4, Letter, Legal, A3, A5, Tabloid
Auto-detect browser Chrome, Edge, Brave, Chromium — macOS, Linux, Windows
Context menus Right-click in editor, explorer, or use Command Palette

📦 Installation

Open VS Code / Cursor, launch Quick Open (Ctrl+P / Cmd+P), and run:

ext install jcendal.ai-markdown-to-pdf

Or search for AI Markdown to PDF in the Extensions sidebar.


🚀 Usage

Export any Markdown content to PDF in one click. The command AI Markdown: Export to PDF is accessible from two locations depending on the type of document you are working with.

From a Cursor Plan

When working with a plan generated by Cursor (.plan.md), click the menu in the top-right corner of the editor and select AI Markdown: Export to PDF.

Export from Cursor Plan — three-dot menu

From a Markdown file

For any standard .md file, right-click on it in the Explorer sidebar or within the editor to open the context menu, then select AI Markdown: Export to PDF.

Export from context menu — right-click on a .md file

Other access methods

  • Command PaletteCmd+Shift+P / Ctrl+Shift+PAI Markdown: Export to PDF
  • Editor title bar — top-right area when a .md file is active

The PDF is saved alongside the source file and opens automatically in your default viewer.


📝 Examples

Supported Mermaid syntax

Write any Mermaid diagram in your Markdown and it will render as a vector graphic in the PDF:

```mermaid
graph TD
    A[Start] --> B{Decision}
    B -->|Yes| C[Action 1]
    B -->|No| D[Action 2]
    C --> E[End]
    D --> E
```

All Mermaid diagram types are supported: flowcharts, sequence diagrams, class diagrams, state diagrams, ER diagrams, Gantt charts, pie charts, mindmaps, and more.

Configuration examples

Landscape A3 for large diagrams:

{
  "aiMarkdownToPdf.pageSize": "A3",
  "aiMarkdownToPdf.orientation": "landscape"
}

Extra time for complex diagrams:

{
  "aiMarkdownToPdf.mermaidWaitMs": 10000
}

Custom margins for binding:

{
  "aiMarkdownToPdf.margins": {
    "top": "20mm",
    "bottom": "20mm",
    "left": "30mm",
    "right": "15mm"
  }
}

Minimal PDF without page numbers:

{
  "aiMarkdownToPdf.showPageNumbers": false,
  "aiMarkdownToPdf.openAfterExport": false
}

⚙️ Settings

Configure via File → Preferences → Settings and search for aiMarkdownToPdf.

Setting Default Description
chromePath Auto-detect Absolute path to Chrome/Chromium executable
pageSize A4 A4, Letter, Legal, A3, A5, Tabloid
orientation portrait portrait or landscape
margins 18mm / 15mm Object with top, bottom, left, right values
fontSize 13 Base font size in pixels
mermaidWaitMs 4000 Time to wait for Mermaid rendering (1000–30000 ms)
showPageNumbers true Show page numbers in PDF footer
openAfterExport true Open PDF in default viewer after export

🔧 Requirements

A Chromium-based browser must be installed:

Browser macOS Linux Windows
Google Chrome
Microsoft Edge
Brave Browser
Chromium

The browser is auto-detected. If detection fails:

{
  "aiMarkdownToPdf.chromePath": "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
}

🏗️ How It Works

┌─────────────┐     ┌──────────────┐     ┌───────────────────┐     ┌──────────┐
│  .md file   │ ──▶ │  marked.js   │ ──▶ │  Headless Chrome  │ ──▶ │   .pdf   │
│             │     │  (HTML)      │     │  + Mermaid.js     │     │          │
└─────────────┘     └──────────────┘     └───────────────────┘     └──────────┘
  1. Markdown is parsed to HTML with marked
  2. Fenced ```mermaid blocks become <pre class="mermaid"> elements
  3. HTML is loaded in headless Chrome via puppeteer-core
  4. Mermaid.js v11 is loaded from CDN and renders all diagrams as inline SVG
  5. The extension waits for rendering to complete (configurable timeout)
  6. Chrome prints the page to PDF with the configured settings
  7. Temporary HTML file is cleaned up automatically

🔒 Privacy

This extension runs entirely on your local machine:

  • ✅ No telemetry or analytics
  • ✅ No data collection or transmission
  • ✅ Markdown content never leaves your computer
  • ✅ The only network request is loading Mermaid.js from cdn.jsdelivr.net

🐛 Known Issues

Issue Workaround
Complex diagrams render incompletely Increase mermaidWaitMs (e.g. 8000 or 15000)
Chrome not found Set chromePath manually in settings
Large bundle size (~2 MB) Expected — puppeteer-core is bundled

🤝 Contributing

Contributions, issues, and feature requests are welcome!

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'feat: add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📜 License

MIT © Jorge Cendal


Built with ❤️ for the developer community

⬆ Back to Top

Read the rest on GitHub

Scan report · 2026-09-15
  • Prohibited terms or links
  • Repository eligibility
  • slopscore.md paperwork
  • Content policy
  • Risk review

0 comments

log in to comment.

report this listinglog in to report