Skip to content

Njanderson/markdown-it-synapse-math

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

3 stars

Watchers

2 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors