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
}
]
]
});
- markdownOptions: Object, see https://markdown-it.github.io/markdown-it/#MarkdownIt.new
- markdownPlugins: Array, avaliable plugins