A simple and efficient React-based web application that allows users to write Markdown text and see the rendered HTML preview in real-time.
- Live Preview: See changes instantly as you type.
- GitHub Flavored Markdown: Supports standard GFM syntax including tables, task lists, and code blocks.
- Responsive Design: Works on desktop and mobile browsers.
- Syntax Highlighting: Built-in support for code snippets.
| Main Interface | Editor View & Rendered Output |
|---|---|
![]() |
![]() |
- Node.js (v14 or higher)
- npm or yarn
-
Clone the repository:
git clone https://github.com/your-username/markdown-preview.git
-
Navigate to the project directory:
cd markdown-preview -
Install dependencies:
npm install
-
Start the development server:
npm start
The application will be available at http://localhost:3000.
- React: Frontend library for building the user interface.
- Marked: A low-level markdown compiler for parsing markdown.
- DOMPurify: To sanitize the HTML output and prevent XSS attacks.
- CSS3: For custom styling and layout.
markdown-preview/
├── public/
│ └── screens/ # Application screenshots
├── src/
│ ├── components/ # React components
│ ├── App.js # Main application logic
│ └── index.js # Entry point
└── README.md

