0.3.2 • Published 12 months ago
@mryhryki/markdown v0.3.2
js-markdown
Convert markdown to HTML library for personal use.
How to use
const { convert } = require('@mryhryki/markdown')
const markdown = `
# TITLE
description
`.trim()
const { title, html } = convert(markdown)
console.log(title) // => TITLE
console.log(html) // => <h1>TITLE</h1>\n<p>description</p>