0.1.3 • Published 10 years ago

mdtag v0.1.3

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

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

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago