A sleek and modern markdown editor and previewer built with React + Vite β‘
- π Dark/Light mode with smooth transitions
- πΎ Real-time auto-save
- π± Fully responsive design for all devices
- π Live markdown preview
- π¨ Multiple preview styles (Default, GitHub, Elegant)
- π Import/Export markdown files
- β‘ Lightning-fast performance with Vite
- π― Customizable settings
- π Optional line numbers
- π Auto-save functionality
- π± PWA support for native app experience
- βΏ Full accessibility support with ARIA labels
- π Offline functionality
- π² Install on any device
- π¨ Adaptive interface
- π€ NEW! Gemini AI Assistant for writing assistance
Try it out: WebMarkdown
- Frontend Framework: React 18.3
- Build Tool: Vite 6.0
- Styling: Tailwind CSS 3.4
- PWA: Vite PWA Plugin
- AI: Google Gemini API
- Key Dependencies:
- π¨ @heroicons/react
- π react-markdown
- β¨ remark-gfm
- π― PropTypes
- π± vite-plugin-pwa
- π€ @google/generative-ai
- Clone the repository:
git clone https://github.com/melihcanndemir/markdown-previewer.git- Install dependencies:
npm install- Start the development server:
npm run dev- Build for production:
npm run buildTo enable the AI Assistant feature:
-
Get your free API key from Google AI Studio
-
Create a
.envfile in the root directory:
cp .env.example .env- Add your API key to the
.envfile:
VITE_GEMINI_API_KEY=your_actual_api_key_here- Restart the development server
- Improve Writing: Enhance clarity and professionalism
- Fix Grammar: Correct spelling and punctuation
- Summarize: Create concise summaries
- Expand: Add more details and explanations
- Translate: Turkish β English translation
- Custom Prompts: Use your own AI instructions
Note: The AI Assistant button will appear in the toolbar once the API key is configured.
- Write markdown in the left panel
- See instant preview in the right panel
- Toggle dark/light mode with the theme button
- Use the settings button to customize your experience
- Install as a native app
- Work offline
- Fast loading times
- Home screen installation
- App-like experience
- Full keyboard navigation
- ARIA labels for all interactive elements
- High contrast mode support
- Screen reader friendly
- Focus management
- Click Import to load .md files
- Click Export to save your work
- Supports local storage auto-save
- Adjust font size
- Choose preview style
- Toggle line numbers
- Enable/Disable auto-save
- Customize PWA behavior
Optimized for all devices:
- π» Desktop
- π± Tablets (including iPad Air)
- π± Foldable devices (including Zenbook Fold)
- π± Mobile phones
Contributions are welcome! Feel free to:
- Fork the repository
- Create your feature branch
- Submit a Pull Request
This project is open source and available under the MIT License.
- Icons by Hero Icons
- Markdown parsing by React Markdown
- Styling with Tailwind CSS
- Built with Vite
- PWA support by Vite PWA Plugin
Made with β€οΈ by Melih Can Demir

