1.2.2 • Published 1 year ago

markdownparserbykenvit v1.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

```markdown

Markdown Parser

A simple Markdown parser implemented in JavaScript that converts Markdown text to HTML.

Installation

You can install the Markdown Parser package via npm:

```bash npm install markdown-parser-js ```

Usage

const MarkdownParser = require('markdown-parser-js');

const markdownText = `
# Hello, World!

This is a **Markdown Parser** example.

## Usage

You can use this parser to convert Markdown text to HTML.

**Enjoy parsing!**
`;

const parser = new MarkdownParser();
const htmlText = parser.parse(markdownText);
console.log(htmlText);

Features

  • Supports parsing headings (up to h6)
  • Supports parsing bold and italic text
  • Lightweight and easy to use

Example

Input Markdown:

# Hello, World!

This is a **Markdown Parser** example.

## Usage

You can use this parser to convert Markdown text to HTML.

**Enjoy parsing!**

Output HTML:

<h1>Hello, World!</h1>
<p>This is a <strong>Markdown Parser</strong> example.</p>
<h2>Usage</h2>
<p>You can use this parser to convert Markdown text to HTML.</p>
<p><strong>Enjoy parsing!</strong></p>

License

This project is licensed under the MIT License - see the LICENSE file for details. ```

1.2.2

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.0.0

1 year ago