mdtag

0.1.3 • Public • Published

mdtag

mdtag is a parser that you can use markdown tag in html.

Install

npm install mdtag

Usage

<markdown>
Your markdown language here
 
# mdtag
</markdown>

you can also source from a .md file

<markdown src="./test.md">
</markdown>

Sample

var mdtag_test = mdtag(path.join(__dirname, 'md.html'), function(html) {
    fs.writeFileSync('./test_after.html', html)
});

API

mdtag(html path, callback)

  • html path: should be the absolute path to your html file.
  • callback: callback function, will pass the html that have being convert.

mdtag.html(html, base directory, callback)

  • html: raw html
  • base directory: base directory of your html file.
  • callback: callback function, will pass the html that have being convert.

License

MIT @chilijung

/mdtag/

    Package Sidebar

    Install

    npm i mdtag

    Weekly Downloads

    2

    Version

    0.1.3

    License

    MIT

    Last publish

    Collaborators

    • chilijung