mirror of
1
Fork 0
forgejo/modules
Gusted 4a88dc6416
[GITEA] Require Latex code to have a end sequence
- Currently the parser will look for `\[` and `$$` to detect when Latex
code starts, it will look for `\]` and `$$` respectively in order to
determine the end of the code. However if no end is found the parser
assumes the rest of the input is part of the Latex code.
- Adjust the parser's behavior to not allow the case to assume the rest
of the input is part of the Latex code and requires in order to
determine if some input is Latex code that the end sequence is also
specified.
- Example: `\[hello]` would no longer be detected as Latex code with
this patch.
- Added unit tests.
- Resolves https://codeberg.org/forgejo/forgejo/issues/1817

(cherry picked from commit 452aef1bb1)
(cherry picked from commit 8a857c24b0)
(cherry picked from commit acd1456db9)
(cherry picked from commit 6523b45073)
(cherry picked from commit e2e1a8afe7)
(cherry picked from commit a46ef652eb)
(cherry picked from commit 54d5a8c073)
2024-01-15 16:11:59 +00:00
..
actions [CI] Search .forgejo/workflows first 2024-01-15 13:26:55 +00:00
activitypub
analyze
assetfs
auth [GITEA] Drop sha256-simd in favor of stdlib 2024-01-15 16:11:57 +00:00
avatar [GITEA] Drop sha256-simd in favor of stdlib 2024-01-15 16:11:57 +00:00
base [GITEA] Drop sha256-simd in favor of stdlib 2024-01-15 16:11:57 +00:00
cache Always enable caches (#28527) 2023-12-19 09:29:05 +00:00
charset Add option to disable ambiguous unicode characters detection (#28454) 2023-12-17 14:38:54 +00:00
container
context [SECURITY] Rework long-term authentication 2024-01-15 14:48:04 +00:00
contexttest
csv
doctor Add orphaned topic consistency check (#28507) 2023-12-18 15:32:08 +00:00
emoji
eventsource
generate
git [GITEA] Drop sha256-simd in favor of stdlib 2024-01-15 16:11:57 +00:00
gitgraph
graceful Suggest to use Type=simple for systemd service (#28717) 2024-01-07 15:18:04 +00:00
hcaptcha
highlight Add option to disable ambiguous unicode characters detection (#28454) 2023-12-17 14:38:54 +00:00
hostmatcher
html
httpcache
httplib
indexer [GITEA] Vendor rupture dependency 2024-01-15 15:45:14 +00:00
issue/template
json
label
lfs [GITEA] Drop sha256-simd in favor of stdlib 2024-01-15 16:11:57 +00:00
log
markup [GITEA] Require Latex code to have a end sequence 2024-01-15 16:11:59 +00:00
mcaptcha
metrics
migration
nosql
options
packages Support for grouping RPMs using paths (#26984) 2024-01-12 03:16:05 +00:00
paginator
pprof
private [CLI] implement forgejo-cli 2024-01-15 13:26:55 +00:00
process
proxy
proxyprotocol
public Refactor CORS handler (#28587) 2023-12-25 20:13:18 +08:00
queue [CI] disable redis test, no redis server yet in CI 2024-01-15 13:26:55 +00:00
recaptcha
references Make cross-reference issue links work in markdown documents again (#28682) 2024-01-03 14:01:12 +08:00
regexplru
repository Move more functions to db.Find (#28419) 2024-01-15 02:19:25 +00:00
secret [GITEA] Drop sha256-simd in favor of stdlib 2024-01-15 16:11:57 +00:00
session
setting [GITEA] notifies admins on new user registration 2024-01-15 16:11:57 +00:00
sitemap
ssh
storage [CI] Forgejo Actions based CI for PR & branches 2024-01-15 13:26:56 +00:00
structs [FEAT] allow setting the update date on issues and comments 2024-01-15 14:48:04 +00:00
svg
sync
system
templates Rework markup link rendering (#26745) 2024-01-15 08:49:24 +00:00
test
testlogger
timeutil Make template `DateTime` show proper tooltip (#28677) 2024-01-02 20:09:18 +01:00
translation
turnstile
typesniffer
updatechecker
upload
uri
user
util [GITEA] Drop sha256-simd in favor of stdlib 2024-01-15 16:11:57 +00:00
validation [GITEA] add option for banning dots in usernames 2024-01-15 16:11:57 +00:00
web [GITEA] Use maintained gziphandler 2024-01-15 16:11:58 +00:00
webhook Fix schedule tasks bugs (#28691) 2024-01-12 21:50:38 +00:00