A simple Markdown parser built with React that utilizes dangerouslySetInnerHTML()
. Note: This approach is not recommended for production use, as it can expose your application to potential security risks, including the execution of malicious code.
This Markdown parser supports the following syntax:
- Headings: Create headings of various levels.
- Text Formatting: Apply bold, italic, and underlined styles to text.
- Highlighting: Highlight text for emphasis.
- Code Blocks: Display code snippets with proper formatting.
- Images: Embed images within your Markdown content.
- Horizontal Ruler: Insert horizontal lines to separate content.
For more information on Markdown syntax, check out the Markdown Basic Syntax Guide.
To try this Markdown parser, follow these steps:
- Clone the repository:
git clone https://github.com/schererleander/markdown-parser.git
- Navigate to the project directory:
cd markdown-parser
- Install the dependencies:
npm install
- Start the development server:
npm start