0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-24 08:06:49 -05:00
forgejo/web_src/js
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
..
components Replace fomantic popup module with tippy.js (#20428) 2022-08-09 14:37:34 +02:00
features Improve commit status icons (#21124) 2022-09-09 17:03:18 -04:00
markup Add KaTeX rendering to Markdown. (#20571) 2022-09-14 00:33:37 +08:00
modules Improve commit status icons (#21124) 2022-09-09 17:03:18 -04:00
standalone Add new JS linter rules (#17699) 2021-11-22 16:19:01 +08:00
testUtils Update JS dependencies (#19675) 2022-05-10 21:44:36 +02:00
bootstrap.js Bypass Firefox (iOS) bug (#20244) 2022-07-05 13:27:13 +01:00
index.js Add support mCaptcha as captcha provider (#20458) 2022-08-10 15:20:10 +02:00
jquery.js
serviceworker.js
svg.js Auto merge pull requests when all checks succeeded via WebUI (#19648) 2022-06-11 16:44:20 +02:00
svg.test.js Add copy button to markdown code blocks (#17638) 2021-11-16 16:16:05 +08:00
utils.js Enable contenthash in filename for dynamic assets (#20813) 2022-08-23 20:58:04 +08:00
utils.test.js Enable contenthash in filename for dynamic assets (#20813) 2022-08-23 20:58:04 +08:00