Get started with marked-mangle CDN
MIT licensed
The marked-mangle library is a lightweight tool for transforming Markdown syntax into custom HTML structures.
Tags:- marked
- extension
- mangle
Stable version
Copied!
How to start using marked-mangle CDN
// Include the marked and marked-mangle libraries
const marked = require('marked');
const Mangle = require('marked-mangle');
// Create an instance of the marked parser with marked-mangle plugin
const parser = new marked.Parser({
gfm: true,
mangle: new Mangle(),
});
// Use the parser to convert Markdown to HTML
const markdown = `
# Heading
**Bold text**
_Italic text_
`;
const html = parser.parse(markdown);
// Output the generated HTML
console.log(html);
Copied!
Copied!