Welcome to the Markdown Previewer! This simple web application allows you to write and preview Markdown in real-time. It’s built using React and Vite, providing a fast and modern development experience.
- Real-time Markdown Preview: See your Markdown rendered as HTML as you type.
- Clean and Simple UI: A minimalistic design that focuses on usability and functionality.
- Responsive Design: Works well on both desktop and mobile devices.
- Markdown Syntax Support: Supports common Markdown syntax, including headings, lists, links, images, and code blocks.
You can try the Markdown Previewer live at GitHub Pages or Vercel (replace with your deployment link).
To run this project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/yourusername/markdown-previewer.git cd markdown-previewer -
Install dependencies:
npm install
-
Run the development server:
npm run dev
-
Open your browser and navigate to
http://localhost:5173/.
- Markdown Input: Type your Markdown in the left-hand editor.
- Preview: The right-hand pane shows the rendered HTML output.
- Modify: Make changes to your Markdown and see the preview update in real-time.
You can try pasting the following Markdown into the editor to see how it works:
# Welcome to Markdown Previewer!
## This is a sub-heading
Here’s a simple example of Markdown:
- **Bold text**
- *Italic text*
- [Link to Google](https://google.com)
- `Inline code`
- ```javascript
// Code block
console.log('Hello, world!');- React: A JavaScript library for building user interfaces.
- Vite: A fast build tool and development server.
- Marked: A Markdown parser and compiler for converting Markdown into HTML.
- CSS: Simple, responsive styling.
Contributions are welcome! If you have ideas for new features, feel free to fork the repository and submit a pull request. Please make sure your code follows the existing style and passes any linting checks.
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch). - Make your changes.
- Commit your changes (
git commit -m 'Add some feature'). - Push to the branch (
git push origin feature-branch). - Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for more details.