A blazingly fast, privacy-first, browser-native Markdown to PDF converter.
MarkdownPDF is a powerful document creation tool designed to bridge the gap between simple Markdown writing and professional PDF publishing. Unlike other converters that rely on server-side rendering or blurry canvas snapshots, MarkdownPDF uses native browser orchestration to generate flawless, selectable-text vector PDFs.
- Pro-Level Editor: Integrated Monaco Editor (the engine behind VS Code) with full syntax highlighting, auto-completion, and multi-page support.
- True Vector Export: Utilizes CSS
@pagerules to generate high-fidelity PDFs directly through the browser engine. Text remains selectable and resolution is infinite. - AI Copilot (Gemini): A built-in AI assistant to help you rewrite, summarize, or generate content. Privacy First: Bring your own API key to keep data at-cost and private.
- Aesthetic Themes: Choose from professionally designed themes like Sleek, Dracula, Terminal, Midnight, and more.
- Typography Tuning: Granular control over font sizes, line heights, and paddings for every element (H1, H2, H3, P).
- Math & Tables: Full support for KaTeX math equations and GitHub Flavored Markdown (GFM) tables.
- 100% Privacy: No server uploads. Your data is stored in your browser's
localStorageand processed entirely on your machine.
- Frontend: React 19, TypeScript
- Styling: Tailwind CSS (Typography Plugin)
- Editor: @monaco-editor/react
- Markdown Engine: react-markdown with Remark/Rehype plugins
- AI Integration: Google Generative AI (Gemini)
- Animations: Motion
- Node.js (Latest LTS recommended)
- npm or yarn
-
Clone the repository:
git clone https://github.com/ayhamDev/MarkdownPDF.git cd MarkdownPDF -
Install dependencies:
npm install
-
Environment Variables: Create a
.env.localfile in the root directory:GEMINI_API_KEY="your_api_key_here" -
Run the development server:
npm run dev
-
Open the app: Navigate to
http://localhost:3000in your browser.
To keep this tool free and private, the AI features require your own Google Gemini API Key.
- Get a free key from the Google AI Studio.
- In the MarkdownPDF app, click the Settings icon.
- Paste your key into the API Key field.
- Open the AI Chat drawer and start drafting!
MarkdownPDF is a serverless application.
- No Content Tracking: Your documents are never uploaded to our servers.
- Local Storage: Documents are saved to your browser's local storage.
- Direct AI Link: When using the AI feature, data is sent directly to Google Gemini APIs. We do not intercept or log your prompts.
Contributions make the open-source community an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.
If MarkdownPDF helped you save time or create something beautiful, consider supporting the developer:
Built with ❤️ by AyhamDev
