An open API service indexing awesome lists of open source software.

https://github.com/melihcanndemir/markdown-previewer

A modern and feature-rich Markdown editor and previewer built with React and Vite. Features real-time preview, dark/light themes, auto-save, file import/export, and multiple preview styles.
https://github.com/melihcanndemir/markdown-previewer

developer-tools frontend-development javascript markdown-editor netlify progress-web-app react react-hooks tailwindcss vite web-application

Last synced: 2 months ago
JSON representation

A modern and feature-rich Markdown editor and previewer built with React and Vite. Features real-time preview, dark/light themes, auto-save, file import/export, and multiple preview styles.

Awesome Lists containing this project

README

        

# 📝 Markdown Previewer

![Netlify Status](https://api.netlify.com/api/v1/badges/a11e7b0f-8713-4ebe-af30-c0fd819359f0/deploy-status)
[![PWA Ready](https://img.shields.io/badge/PWA-ready-blue.svg)](https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps)
[![Accessibility Score](https://img.shields.io/badge/Accessibility-94%25-success.svg)](https://www.w3.org/WAI/standards-guidelines/aria/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

> A sleek and modern markdown editor and previewer built with React + Vite ⚡

![React](https://img.shields.io/badge/react-%2320232a.svg?style=for-the-badge&logo=react&logoColor=%2361DAFB)
![Vite](https://img.shields.io/badge/vite-%23646CFF.svg?style=for-the-badge&logo=vite&logoColor=white)
![TailwindCSS](https://img.shields.io/badge/tailwindcss-%2338B2AC.svg?style=for-the-badge&logo=tailwind-css&logoColor=white)

## 📸 Screenshots

### 🌞 Light Mode
![Light Mode](screenshots/light-mode.png)

### 🌚 Dark Mode
![Dark Mode](screenshots/dark-mode.png)

## ✨ Features

- 🌓 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

## 🚀 Live Demo

Try it out: [WebMarkdown](https://webmarkdown.netlify.app/)

## 🛠️ Tech Stack

- **Frontend Framework:** React 18.3
- **Build Tool:** Vite 6.0
- **Styling:** Tailwind CSS 3.4
- **PWA:** Vite PWA Plugin
- **Key Dependencies:**
- 🎨 @heroicons/react
- 📝 react-markdown
- ✨ remark-gfm
- 🎯 PropTypes
- 📱 vite-plugin-pwa

## 💻 Local Development

1. Clone the repository:
```bash
git clone https://github.com/melihcanndemir/markdown-previewer.git
```

2. Install dependencies:
```bash
npm install
```

3. Start the development server:
```bash
npm run dev
```

4. Build for production:
```bash
npm run build
```

## 🎯 Usage

### Editor Features
- 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

### PWA Features
- Install as a native app
- Work offline
- Fast loading times
- Home screen installation
- App-like experience

### Accessibility Features
- Full keyboard navigation
- ARIA labels for all interactive elements
- High contrast mode support
- Screen reader friendly
- Focus management

### Import/Export
- Click Import to load .md files
- Click Export to save your work
- Supports local storage auto-save

### Settings
- Adjust font size
- Choose preview style
- Toggle line numbers
- Enable/Disable auto-save
- Customize PWA behavior

## 📱 Responsive Design

Optimized for all devices:
- 💻 Desktop
- 📱 Tablets (including iPad Air)
- 📱 Foldable devices (including Zenbook Fold)
- 📱 Mobile phones

## 🤝 Contributing

Contributions are welcome! Feel free to:

1. Fork the repository
2. Create your feature branch
3. Submit a Pull Request

## 📜 License

This project is open source and available under the [MIT License](LICENSE).

## 🙏 Credits

- Icons by [Hero Icons](https://heroicons.com)
- Markdown parsing by [React Markdown](https://github.com/remarkjs/react-markdown)
- Styling with [Tailwind CSS](https://tailwindcss.com)
- Built with [Vite](https://vitejs.dev)
- PWA support by [Vite PWA Plugin](https://vite-pwa-org.netlify.app/)

## 👨‍💻 Author

- [@melihcanndemir](https://github.com/melihcanndemir)

---

Made with ❤️ by Melih Can Demir