gitea
gitea copied to clipboard
Fix slight bug in katex
There is a small bug in #20571 whereby $a a$b b$
will not be correctly detected as a math inline block of a a$b b
. This PR fixes this.
Signed-off-by: Andrew Thornton [email protected]
There is a small bug in #20571 whereby
$a a$b b$
will not be correctly detected as a math inline block ofa a$b b
. This PR fixes this.Signed-off-by: Andrew Thornton [email protected]
Maybe a new test is better.
OK tests added.
I closed #21340, could the fixes be taken in this one?
- https://github.com/zeripath/gitea/pull/14
- Add missing
os.Exit(m.Run())
tomarkup/html_test.go
and fix the test inTestRender_emoji
- Fix a overflow bug in
markup/markdown/meta.go
- Fix the string vs bytes comparison in
markup/markdown/meta_test.go
- Remove unnecessary
util.Dedent
, YAML can accept global indention. - The comment
Trigger returns nil
is not touched, not sure what should be written there.
make lgtm work