A powerful, browser-based Markdown editor with real-time preview and PDF export functionality.
See a Live Demo
- π Real-time Markdown rendering
- π¨ Multiple document themes
- π Export to PDF
- π Synchronized scrolling
- π» Responsive design
- π No server-side processing required
Choose from a variety of document styles to suit your needs:
- Default
- Formal
- Modern
- Elegant
- Professional
-
Clone this repository:
git clone https://github.com/oakmgt/md2pdf.git cd md2pdf -
Start a local server:
python3 -m http.server
-
Open your browser and navigate to:
http://localhost:8000
- Enter your Markdown in the left pane.
- See the rendered HTML in real-time on the right.
- Choose a theme from the dropdown menu.
- Click "Download as PDF" to export your document.
- Fork this repository.
- Go to the "Settings" tab.
- Scroll down to the "GitHub Pages" section.
- Select the "main" branch and click "Save".
- Your Markdown editor will be live at:
https://<username>.github.io/mdf2pdf
- HTML5
- CSS3
- JavaScript
- Marked.js for Markdown parsing
- html2pdf.js for PDF generation
Contributions are welcome! Please feel free to submit a Pull Request.
This project is open source and available under the MIT License.
If you have any questions, feel free to reach out to us or open an issue.
Happy Markdown editing! πβ¨
