signalwerk.documentation.md
v0.0.1
Published
Markdown handler for documentations
Downloads
7
Readme
Introduction
This is basically a wrapper for markdown-it and many extensions.
Installation
npm install signalwerk.documentation.md --save
Use
import SignalwerkDocMd from 'signalwerk.documentation.md';
const md = `
# Heading 1
## Heading 2
Hello World!
`;
const html = new SignalwerkDocMd().render(md);
console.log(html);
fs.writeFileSync('./index.html', html);