added mathjax (#250)

added markdown-it-mathjax

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
Co-authored-by: Philip Molares <philip@mauricedoepke.de>
Co-authored-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
Philip Molares 2020-06-23 00:38:06 +02:00 committed by GitHub
parent 9e6edb0aeb
commit 8133d565cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 107 additions and 2 deletions

View file

@ -0,0 +1,6 @@
declare module 'markdown-it-mathjax' {
import MarkdownIt from 'markdown-it/lib'
import { MathJaxOptions } from './interface'
const markdownItMathJax: (MathJaxOptions) => MarkdownIt.PluginSimple
export = markdownItMathJax
}

View file

@ -0,0 +1,8 @@
export interface MathJaxOptions {
beforeMath: string,
afterMath: string,
beforeInlineMath: string,
afterInlineMath: string,
beforeDisplayMath: string,
afterDisplayMath: string
}