Skip to content

classeur/markdown-it-pandoc-renderer

Repository files navigation

markdown-it-pandoc-renderer

Build Status NPM version

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.

License

MIT