A simple web app to convert Markdown to Word documents and PDFs. Built because I got tired of copying and pasting AI-generated content into Google Docs.
- Converts Markdown to .docx files
- Converts Markdown to PDF files (portrait or landscape)
- Works well with content from ChatGPT, Claude, or any LLM
- Has a clean web interface
- No file uploads needed - just paste and convert
git clone https://github.com/nishantkluhera/MarkDraft.git
cd MarkDraft
npm install
npm startOpen http://localhost:3000 and you're good to go.
If you prefer Docker:
docker-compose up -d- Express.js server
- Markdown parsing with markdown-it
- Word document generation using html-to-docx
- PDF generation with Puppeteer
- Basic security headers and rate limiting
- Responsive web UI
npm run dev # Start with nodemon
npm test # Run tests
npm run lint # Check code style- Input validation and sanitization
- Rate limiting (10 conversions per 15 minutes)
- CORS protection
- Standard security headers
- No file storage (everything's processed in memory)
PRs welcome! Just make sure tests pass and code is clean.
MIT - do whatever you want with it.