Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-30 13:56:09 +01:00
forgejo/web_src/js/markup
zeripath 88c2e24360
Add KaTeX rendering to Markdown. (#20571)
This PR adds mathematical rendering with KaTeX.

The first step is to add a Goldmark extension that detects the latex
(and tex) mathematics delimiters.

The second step to make this extension only run if math support is
enabled.

The second step is to then add KaTeX CSS and JS to the head which will
load after the dom is rendered.

Fix #3445

Signed-off-by: Andrew Thornton <art27@cantab.net>

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-09-14 00:33:37 +08:00
..
anchors.js Use a generic markup class to display externally rendered files and diffs (#15735) 2021-05-07 10:43:41 +02:00
codecopy.js Add copy button to markdown code blocks (#17638) 2021-11-16 16:16:05 +08:00
content.js Add KaTeX rendering to Markdown. (#20571) 2022-09-14 00:33:37 +08:00
math.js Add KaTeX rendering to Markdown. (#20571) 2022-09-14 00:33:37 +08:00
mermaid.js Various Mermaid improvements (#18776) 2022-02-16 11:28:29 +08:00
tasklist.js Use explicit jQuery import, remove unused eslint globals (#18435) 2022-01-28 21:00:11 +00:00