It's a tool to compile mdast to latex.
https://github.com/zestedesavoir/zmarkdown/tree/master/packages/rebber
var unified = require('unified')
var createStream = require('unified-stream')
var parse = require('remark-parse')
var math = require('remark-math')
var latex = require('remark-latex')
var details = require('remark-details')
var processor = unified()
.use(parse)
.use(math)
.use(details)
.use(latex, {
// options
})
process.stdin.pipe(createStream(processor)).pipe(process.stdout)
options.image_prefix
sets the prefix for the link of local images.
This tool is originally used to compile OI Wiki to latex, and tested with limited cases.