mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-20 10:15:17 -04:00
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:
parent
9e6edb0aeb
commit
8133d565cf
7 changed files with 107 additions and 2 deletions
6
src/external-types/markdown-it-mathjax/index.d.ts
vendored
Normal file
6
src/external-types/markdown-it-mathjax/index.d.ts
vendored
Normal 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
|
||||
}
|
8
src/external-types/markdown-it-mathjax/interface.ts
Normal file
8
src/external-types/markdown-it-mathjax/interface.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
export interface MathJaxOptions {
|
||||
beforeMath: string,
|
||||
afterMath: string,
|
||||
beforeInlineMath: string,
|
||||
afterInlineMath: string,
|
||||
beforeDisplayMath: string,
|
||||
afterDisplayMath: string
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue