md-to-html

1.0.2 • Public • Published

md-to-html

honeo/md-to-html
md-to-html

なにこれ

markdownファイルをhtmlファイルに変換する。
GitHub風Style、SyntaxHighlight、TOC付き。

使い方

$ npm i -S md-to-html
import md2html from 'md-to-html';
 
const promise = md2html('foo.md', 'bar.html', {
    breaks: true,
    maxdepth: 2,
    title: 'page-title'
});

API

md2html(input, output [, options])

options {
    encode: 'utf8', // fs.method(,, encode, )
    maxdepth: 6, // TOC深度
    style: 'monokai-sublime' // highlight.js/src/styles/${style}.css
    title: 'title' // <title>${title}</title>
    // ...and marked options
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i md-to-html

Weekly Downloads

0

Version

1.0.2

License

MIT

Last publish

Collaborators

  • honeo