mirror of
1
Fork 0
forgejo/modules
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
..
activitypub Refactor AssertExistsAndLoadBean to use generics (#20797) 2022-08-16 10:22:25 +08:00
analyze
appstate
auth Remove legacy `+build:` constraint (#19582) 2022-05-02 23:22:45 +08:00
avatar Go 1.19 format (#20758) 2022-08-30 21:15:45 -05:00
base Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
cache
charset Move go-licenses to generate and separate generate into a frontend and backend component (#21061) 2022-09-05 14:04:18 +08:00
container
context Support Issue forms and PR forms (#20987) 2022-09-02 15:58:49 +08:00
convert Fix 500 on time tracking in timeline API (#21052) 2022-09-04 15:01:23 +01:00
csv Go 1.19 format (#20758) 2022-08-30 21:15:45 -05:00
doctor Move some files into models' sub packages (#20262) 2022-08-25 10:31:57 +08:00
emoji Go 1.19 format (#20758) 2022-08-30 21:15:45 -05:00
eventsource Move some files into models' sub packages (#20262) 2022-08-25 10:31:57 +08:00
generate
git test: use `T.TempDir` to create temporary test directory (#21043) 2022-09-04 16:14:53 +01:00
gitgraph
graceful Support Proxy protocol (#12527) 2022-08-21 19:20:43 +01:00
hcaptcha
highlight
hostmatcher Add proxy host into allow list (#20798) 2022-08-16 20:15:54 -04:00
httpcache
httplib
indexer test: use `T.TempDir` to create temporary test directory (#21043) 2022-09-04 16:14:53 +01:00
issue/template Support Issue forms and PR forms (#20987) 2022-09-02 15:58:49 +08:00
json
lfs
log test: use `T.TempDir` to create temporary test directory (#21043) 2022-09-04 16:14:53 +01:00
markup Add KaTeX rendering to Markdown. (#20571) 2022-09-14 00:33:37 +08:00
mcaptcha Add support mCaptcha as captcha provider (#20458) 2022-08-10 15:20:10 +02:00
metrics Move some files into models' sub packages (#20262) 2022-08-25 10:31:57 +08:00
migration Add more checks in migration code (#21011) 2022-09-04 13:47:56 +03:00
mirror
nosql fix broken insecureskipverify handling in rediss connection uris (#20967) 2022-08-29 16:38:49 +02:00
notification Webhook for Wiki changes (#20219) 2022-09-04 20:54:23 +01:00
options Share HTML template renderers and create a watcher framework (#20218) 2022-08-28 10:43:25 +01:00
packages Fix various typos (#21103) 2022-09-07 14:40:36 -04:00
paginator
password
pprof Go 1.19 format (#20758) 2022-08-30 21:15:45 -05:00
private Support Proxy protocol (#12527) 2022-08-21 19:20:43 +01:00
process Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
proxy
proxyprotocol Support Proxy protocol (#12527) 2022-08-21 19:20:43 +01:00
public Remove legacy `+build:` constraint (#19582) 2022-05-02 23:22:45 +08:00
queue test: use `T.TempDir` to create temporary test directory (#21043) 2022-09-04 16:14:53 +01:00
recaptcha
references Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
regexplru
repository Move some files into models' sub packages (#20262) 2022-08-25 10:31:57 +08:00
secret
session format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
setting Add KaTeX rendering to Markdown. (#20571) 2022-09-14 00:33:37 +08:00
sitemap
ssh Support Proxy protocol (#12527) 2022-08-21 19:20:43 +01:00
storage Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
structs Webhook for Wiki changes (#20219) 2022-09-04 20:54:23 +01:00
svg
sync
templates Make labels clickable in the comments section. (#21137) 2022-09-12 13:45:14 -04:00
test Refactor AssertExistsAndLoadBean to use generics (#20797) 2022-08-16 10:22:25 +08:00
timeutil Share HTML template renderers and create a watcher framework (#20218) 2022-08-28 10:43:25 +01:00
translation Share HTML template renderers and create a watcher framework (#20218) 2022-08-28 10:43:25 +01:00
typesniffer
updatechecker
upload
uri
user Add gitea-vet (#10948) 2020-04-05 07:20:50 +01:00
util Go 1.19 format (#20758) 2022-08-30 21:15:45 -05:00
validation Add more checks in migration code (#21011) 2022-09-04 13:47:56 +03:00
watcher Share HTML template renderers and create a watcher framework (#20218) 2022-08-28 10:43:25 +01:00
web refactor webhook *NewPost (#20729) 2022-08-11 17:48:23 +02:00