@mryhryki/markdown
TypeScript icon, indicating that this package has built-in type declarations

0.3.2 • Public • Published

js-markdown

npm version

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>

Readme

Keywords

Package Sidebar

Install

npm i @mryhryki/markdown

Weekly Downloads

2

Version

0.3.2

License

MIT

Unpacked Size

6.06 kB

Total Files

8

Last publish

Collaborators

  • mryhryki