@toolsnap/markdown-to-html
v1.0.0
Published
Convert Markdown text to HTML with zero dependencies
Downloads
15
Maintainers
Readme
@toolsnap/markdown-to-html
Convert Markdown text to HTML with zero dependencies.
Installation
npm install @toolsnap/markdown-to-htmlUsage
const { markdownToHtml } = require('@toolsnap/markdown-to-html');
const html = markdownToHtml('# Hello\n\nThis is **bold** and *italic*.');
// <h1>Hello</h1><p>This is <strong>bold</strong> and <em>italic</em>.</p>Supported Syntax
- Headings (h1–h6)
- Bold, italic, strikethrough
- Links and images
- Code blocks and inline code
- Unordered and ordered lists
- Blockquotes and horizontal rules
Try Online
👉 https://risetop.top/markdown-editor.html
License
MIT
