markdown-it-pandoc-renderer
v1.2.0
Published
A Markdown-it renderer that generates Pandoc compatible AST.
Downloads
342
Readme
markdown-it-pandoc-renderer
Markdown-it renderer that generates Pandoc compatible AST.
Install
npm install markdown-it-pandoc-renderer --save
Use
var md = require('markdown-it')()
var render = require('markdown-it-pandoc-renderer')
render(md.parse('abc', {})) // => '[{"unMeta":{}},[{"t":"Para","c":[{"t":"Str","c":"abc"}]}]]'
Differences in browser. If you load script directly into the page, without
package system, module will add itself globally as window.markdownitPandocRenderer
.