1
0
Fork 0
forgejo/docs/content/doc/advanced
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
..
adding-legal-pages.en-us.md Fix various typos of software names (#18083) 2021-12-24 11:56:57 +08:00
clone-filter.en-us.md Add markdownlint (#20512) 2022-07-28 09:22:47 +08:00
cmd-embedded.en-us.md Fix various typos of software names (#18083) 2021-12-24 11:56:57 +08:00
config-cheat-sheet.en-us.md Add KaTeX rendering to Markdown. (#20571) 2022-09-14 00:33:37 +08:00
config-cheat-sheet.zh-cn.md Update docs for versions (#20750) 2022-08-10 13:37:15 -04:00
customizing-gitea.en-us.md Fix PlantUML example in document (#21142) 2022-09-11 22:14:46 +08:00
customizing-gitea.zh-cn.md Update documentation to reflect #15219 (#16442) 2021-07-15 20:49:12 +01:00
environment-variables.en-us.md Update docs and comments to remove macaron (#14491) 2021-01-29 16:35:30 +01:00
environment-variables.zh-cn.md Add markdownlint (#20512) 2022-07-28 09:22:47 +08:00
external-renderers.en-us.md Add KaTeX rendering to Markdown. (#20571) 2022-09-14 00:33:37 +08:00
hacking-on-gitea.zh-cn.md
logging-documentation.en-us.md Upgrade the document about how to collect logs for systemd and docker (#21101) 2022-09-07 23:58:55 +08:00
mail-templates-us.md Add markdownlint (#20512) 2022-07-28 09:22:47 +08:00
make.fr-fr.md docs: fix various typos and translate to french (#16477) 2021-07-18 12:21:32 -04:00
make.zh-cn.md
protected-tags.en-us.md Add markdownlint (#20512) 2022-07-28 09:22:47 +08:00
repo-indexer.en-us.md
repo-mirror.en-us.md Add markdownlint (#20512) 2022-07-28 09:22:47 +08:00
search-engines-indexation.en-us.md Add markdownlint (#20512) 2022-07-28 09:22:47 +08:00
signing.en-us.md Add hint to GNUPGHOME environment variable (#20134) 2022-07-10 17:04:46 +08:00
third-party-tools.zh-cn.md Add markdownlint (#20512) 2022-07-28 09:22:47 +08:00