A powerful web application that converts Markdown content into various formats including PDF, PowerPoint, Word, and HTML. Built with Next.js and TypeScript, this application provides a seamless experience for converting your markdown documents into professional formats.
-
Multiple Format Support
- Convert to PDF
- Convert to PowerPoint presentations
- Convert to Word documents
- View as HTML
-
Real-time Preview
- Live preview of your markdown content
- Split-screen editor and preview
- Responsive design for all screen sizes
-
PowerPoint Features
- Automatic slide creation based on headings
- Maintains formatting and styling
- Supports images and links
- Navigation controls for preview
-
PDF Features
- High-quality PDF generation
- Preserves all formatting and styling
- Optimized for printing
-
Word Features
- Clean document conversion
- Maintains heading hierarchy
- Preserves text formatting
- Frontend Framework: Next.js
- Language: TypeScript
- Styling: Tailwind CSS
- Markdown Processing:
marked
for markdown parsingreact-markdown
for preview rendering
- Conversion Libraries:
pptxgenjs
for PowerPoint generationjspdf
andhtml2canvas
for PDF generationdocx
for Word document generation
-
Clone the repository:
git clone https://github.com/yourusername/markdown-converter.git
-
Install dependencies:
cd markdown-converter npm install
-
Run the development server:
npm run dev
-
Open http://localhost:3000 in your browser
- Write or paste your markdown content in the editor
- Use the preview panel to see how your content looks
- Choose your desired output format (PDF, PowerPoint, Word, or HTML)
- Click the download button to save your converted document
- Use
#
for headings (creates new slides in PowerPoint) - Use
**bold**
for bold text - Use
*italic*
for italic text - Use
-
or*
for bullet points - Use
[link text](url)
for links
src/
├── components/
│ ├── layouts/ # Shared layout components
│ ├── PdfConverter.tsx
│ ├── WordConverter.tsx
│ ├── PowerpointConverter.tsx
│ └── HtmlConverter.tsx
├── lib/
│ └── utils.ts # Utility functions
├── types/
│ └── convert.ts # TypeScript types
└── app/
└── page.tsx # Main application page
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.