Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

mathjax-node-svg2img

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mathjax-node-svg2img

Extend mathjax-node using svg2img

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

mathjax-node-svg2img

This module extends mathjax-node using svg2img.

It can be used as a drop-in replacement for mathjax-node. This is an improvement on the archived project, mathjax-node-svg2png. svg2img does not require PhantomJS. PhantomJS is not actively maintained and troublesome to containerize.

Use

npm install mathjax-node-svg2img

to install mathjax-node-svg2img and its dependencies.

Use

This module is used like mathjax-node, extending the input data object with new options

png: true                           // enable PNG generation
pngHeight: desired height (in px)   // Override height
pngWidth: desired width (in px)     // Override width
scale: 1                            // scaling factor to apply during conversion

Similarly, mathjax-node's result object is extended with new keys png (containing the resulting data-uri string), pngWidth, and pngHeight (png width and height in pixel).

png:                   // PNG results
pngWidth:              // width (in px)
pngHeight:             // height (in px)

Keywords

mathjax

FAQs

Package last updated on 20 May 2021

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