forgejo/modules
Gusted 316ff9767f
[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)
(cherry picked from commit 4a88dc6416)
(cherry picked from commit f88b58be3f)
2024-01-28 10:54:59 +01:00
..
actions [CI] Search .forgejo/workflows first 2024-01-28 07:47:32 +01:00
activitypub Upgrade to golangci-lint@v1.55.0 (#27756) 2023-10-24 02:54:59 +00:00
analyze
assetfs
auth [GITEA] Drop sha256-simd in favor of stdlib 2024-01-28 10:48:05 +01:00
avatar [GITEA] Drop sha256-simd in favor of stdlib 2024-01-28 10:48:05 +01:00
base [GITEA] Drop sha256-simd in favor of stdlib 2024-01-28 10:48:05 +01:00
cache Always enable caches (#28527) 2023-12-19 09:29:05 +00:00
charset Preserve BOM in web editor (#28935) 2024-01-27 18:02:51 +00:00
container
context [SECURITY] Rework long-term authentication 2024-01-28 08:19:26 +01:00
contexttest Simplify how git repositories are opened (#28937) 2024-01-27 21:09:51 +01:00
csv
emoji
eventsource
generate
git [GITEA] Drop sha256-simd in favor of stdlib 2024-01-28 10:48:05 +01:00
gitgraph
gitrepo Simplify how git repositories are opened (#28937) 2024-01-27 21:09:51 +01:00
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-28 08:54:31 +01:00
issue/template
json
label
lfs [GITEA] Drop sha256-simd in favor of stdlib 2024-01-28 10:48:05 +01:00
log
markup [GITEA] Require Latex code to have a end sequence 2024-01-28 10:54:59 +01:00
mcaptcha
metrics
migration
nosql
options
packages [GITEA] feat(nuget): basic manifest download 2024-01-28 08:54:31 +01:00
paginator
pprof
private [CLI] implement forgejo-cli 2024-01-28 07:47:32 +01: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-28 07:47:32 +01:00
recaptcha
references Add support for sha256 repositories (#23894) 2024-01-19 17:05:02 +01:00
regexplru
repository Simplify how git repositories are opened (#28937) 2024-01-27 21:09:51 +01:00
secret [GITEA] Drop sha256-simd in favor of stdlib 2024-01-28 10:48:05 +01:00
session
setting [GITEA] notifies admins on new user registration 2024-01-28 10:47:53 +01:00
sitemap
ssh Remove SSH workaround (#27893) 2023-11-03 15:21:05 +00:00
storage [CI] Forgejo Actions based CI for PR & branches 2024-01-28 07:47:32 +01:00
structs [FEAT] allow setting the update date on issues and comments 2024-01-28 08:19:26 +01:00
svg
sync
system
templates Add support for sha256 repositories (#23894) 2024-01-19 17:05:02 +01:00
test
testlogger
timeutil Make template DateTime show proper tooltip (#28677) 2024-01-02 20:09:18 +01:00
translation [I18N] add [common] as first line 2024-01-28 08:54:31 +01:00
turnstile
typesniffer
updatechecker
upload
uri
user
util [GITEA] Drop sha256-simd in favor of stdlib 2024-01-28 10:48:05 +01:00
validation [GITEA] add option for banning dots in usernames 2024-01-28 09:22:15 +01:00
web [GITEA] Use maintained gziphandler 2024-01-28 10:53:42 +01:00
webhook Fix schedule tasks bugs (#28691) 2024-01-12 21:50:38 +00:00