Socket
Book a DemoInstallSign in
Socket

remark-latex

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remark-latex

a compiler that stringifies mdast syntax trees to latex

0.12.12
latest
Source
npmnpm
Version published
Weekly downloads
168
37.7%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

remark

FAQs

Package last updated on 23 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.