1
0
Fork 0
forgejo/modules
Gusted 8a857c24b0
[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)
2023-12-04 14:22:21 +01:00
..
actions [CI] Search .forgejo/workflows first 2023-12-04 12:21:19 +01:00
activitypub
analyze
assetfs
auth [GITEA] Drop sha256-simd in favor of stdlib 2023-12-04 14:22:20 +01:00
avatar [GITEA] Drop sha256-simd in favor of stdlib 2023-12-04 14:22:20 +01:00
base [GITEA] Drop sha256-simd in favor of stdlib 2023-12-04 14:22:20 +01:00
cache
charset
container
context [SECURITY] Rework long-term authentication 2023-12-04 12:47:02 +01:00
contexttest
csv
doctor
emoji
eventsource
generate
git [GITEA] Drop sha256-simd in favor of stdlib 2023-12-04 14:22:20 +01:00
gitgraph
graceful
hcaptcha
highlight
hostmatcher
html
httpcache
httplib
indexer [CI] disable meilisearch/elasticsearch test, no server yet in CI 2023-12-04 12:21:19 +01:00
issue/template
json
label
lfs [GITEA] Drop sha256-simd in favor of stdlib 2023-12-04 14:22:20 +01:00
log
markup [GITEA] Require Latex code to have a end sequence 2023-12-04 14:22:21 +01:00
mcaptcha
metrics
migration
nosql
options
packages
paginator
pprof
private [CLI] implement forgejo-cli 2023-12-04 12:21:19 +01:00
process
proxy
proxyprotocol
public
queue [CI] disable redis test, no redis server yet in CI 2023-12-04 12:21:19 +01:00
recaptcha
references
regexplru
repository Ignore "non-existing" errors when getDirectorySize calculates the size (#28276) 2023-11-29 13:08:58 +08:00
secret [GITEA] Drop sha256-simd in favor of stdlib 2023-12-04 14:22:20 +01:00
session
setting [GITEA] notifies admins on new user registration 2023-12-04 14:19:27 +01:00
sitemap
ssh
storage [CI] Forgejo Actions based CI for PR & branches 2023-12-04 12:21:19 +01:00
structs [FEAT] allow setting the update date on issues and comments 2023-12-04 12:47:02 +01:00
svg
sync
system
templates
test
testlogger
timeutil
translation
turnstile
typesniffer
updatechecker
upload
uri
user
util [GITEA] Drop sha256-simd in favor of stdlib 2023-12-04 14:22:20 +01:00
validation [GITEA] add option for banning dots in usernames 2023-12-04 14:19:26 +01:00
web [GITEA] Use maintained gziphandler 2023-12-04 14:22:21 +01:00
webhook