A markdown-it plugin for theme customization.
npm install markdown-it-theme> A [markdown-it] plugin for theme customization.
[markdown-it]: https://github.com/markdown-it/markdown-it
> index.md
``markdownpluginheader
markdown-it-theme `
> index.js
`js`
var fs = require('fs')
var plugin = require('markdown-it-theme')
var options = { theme: 'custom-md-theme' }
var md = require('markdown-it')().use(plugin, options)
var input = fs.readFileSync('index.md', 'utf-8')
var result = md.render(input)
console.log(result)
> Result
` markdown-it-theme html`header
plugin
Name | Type | Description | Default
------------------|----------|------------------------|-----------
theme | string | The class of html tag. | undefinedalias` | function | Alias class of html tag. | undefined