tag-markdown

1.1.1 • Public • Published

tag-markdown

Tagged template string function that converts Markdown to HTML

Usage

const md = require("tag-markdown")();
 
const singleLine = md`
This is test _markdown_ string :tada:
`; // => "This is test <em>markdown</em> string 🎉"
 
const byaka = "Test";
 
const multiLine = md`
                    This is ${byaka} of :wave: multiline
                    Markdown template literal tag`; // => "<p>This is Test of 👋 multiline\n<p>Markdown template literal tag"

Package Sidebar

Install

npm i tag-markdown

Weekly Downloads

2

Version

1.1.1

License

MIT

Unpacked Size

4.01 kB

Total Files

4

Last publish

Collaborators

  • tinovyatkin