A powerful web application for viewing and editing Markdown files with embedded Mermaid diagrams. Built with Next.js and React.
- Live Preview: Write Markdown and see it rendered in real-time
- Mermaid Support: Create and view diagrams directly in your Markdown
- Responsive Design: Works on desktop and mobile devices
- GitHub Markdown Style: Renders with familiar GitHub styling
- Import/Export: Load and save your Markdown files
First, install the dependencies:
npm install
# or
yarn install
# or
pnpm install
Then, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
Open http://localhost:3000 with your browser to see the application.
- Write or paste your Markdown content in the editor panel
- View the rendered output in the preview panel
- Mermaid diagrams will automatically render when enclosed in ````mermaid` code blocks
- Use the tab switcher to focus on either editing or viewing
- Import or export your content using the provided buttons
# My Document
Here's a flowchart:
```mermaid
graph TD
A[Start] --> B{Is it working?}
B -->|Yes| C[Great!]
B -->|No| D[Debug]
D --> B
C --> E[Continue]
## Technologies Used
- [Next.js](https://nextjs.org/) - React framework
- [React](https://reactjs.org/) - UI library
- [Mermaid](https://mermaid.js.org/) - Diagramming and charting tool
- [Marked](https://marked.js.org/) - Markdown parser
- [DOMPurify](https://github.com/cure53/DOMPurify) - XSS sanitizer
- [Tailwind CSS](https://tailwindcss.com/) - CSS framework
- [shadcn/ui](https://ui.shadcn.com/) - UI component library
## License
This project is open-source and available under the MIT License.