panto-transformer-markdown
v0.1.0
Published
Markdown transformer for panto
Downloads
3
Maintainers
Readme
panto-transformer-markdown
Markdown transformer for panto based on markdown-it.
panto.loadTransformer('markdown');
panto.$('**/*.md').read().markdown({
markdownOptions: {
html: true
},
markdownPlugins: [
[
require('markdown-it-sanitizer'), {
imageClass: 'my-img',
removeUnbalanced: false,
removeUnknown: false
}
]
]
});
options
- markdownOptions: Object, see https://markdown-it.github.io/markdown-it/#MarkdownIt.new
- markdownPlugins: Array, avaliable plugins