1.2.2 • Published 1 year ago

markdown-to-html-renderer v1.2.2

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

markdown-to-html-renderer

A simple library to render Markdown content to HTML using Node.js.

Installation

npm install markdown-to-html-renderer

Usage

const markdownToHtml = require('markdown-to-html-renderer');

const markdownContent = `
# Hello, World!

This is a **Markdown** example.

- List item 1
- List item 2
`;

const htmlContent = markdownToHtml(markdownContent);
console.log(htmlContent);

Options

This library utilizes marked for Markdown parsing, dompurify for HTML sanitization, and highlight.js for code syntax highlighting.

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.0.0

1 year ago