remark-latex
v0.12.12
Published
a compiler that stringifies mdast syntax trees to latex
Downloads
23
Readme
remark-latex
It's a tool to compile mdast to latex.
usage
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
options.image_prefix
sets the prefix for the link of local images.
disclaimer
This tool is originally used to compile OI Wiki to latex, and tested with limited cases.