🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

markdown-it-synapse-math

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markdown-it-synapse-math

Markdown-it plugin to include math in your document

latest
Source
npmnpm
Version
3.0.5
Version published
Maintainers
2
Created
Source

markdown-it-synapse-math

Based very loosely on markdown-it-math for integration with Synapse and our MathJax workflow.

Pythagoran theorem is $$/(a^2 + b^2 = c^2/)$$ will render to:
a^2 + b^2 = c^2
Bayes theorem:

$$
\begin{aligned}
P(A | B) = (P(B | A)P(A)) / P(B)
\end{aligned}
$$

will render to a block with:
P(A | B) = (P(B | A)P(A)) / P(B)

Installation

npm install

Usage

var md = require('markdown-it')()
        .use(require('markdown-it-math'), suffix);
// rendering relies on suffix for MathJax to be pointed to the correct DOM elements

Keywords

markdown-it

FAQs

Package last updated on 25 Jun 2019

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