Skip to content

OI-wiki/remark-latex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

remark-latex

It's a tool to compile mdast to latex.

related works

https://github.com/zestedesavoir/zmarkdown/tree/master/packages/rebber

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.

About

a tool to compile mdast to latex

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published