Skip to content

Conversation

zeripath
Copy link
Contributor

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 art27@cantab.net

@zeripath zeripath added type/bug skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. labels Sep 14, 2022
@zeripath zeripath added this to the 1.18.0 milestone Sep 14, 2022
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Sep 14, 2022
@lunny
Copy link
Member

lunny commented Sep 15, 2022

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 art27@cantab.net

Maybe a new test is better.

There is a small bug in go-gitea#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 <art27@cantab.net>
Signed-off-by: Andrew Thornton <art27@cantab.net>
@zeripath zeripath force-pushed the small-additional-fix-to-katex branch from 36c5a67 to 50d572b Compare October 4, 2022 20:31
Signed-off-by: Andrew Thornton <art27@cantab.net>
@zeripath
Copy link
Contributor Author

zeripath commented Oct 4, 2022

OK tests added.

@wxiaoguang
Copy link
Contributor

I closed #21340, could the fixes be taken in this one?


  • Add missing os.Exit(m.Run()) to markup/html_test.go and fix the test in TestRender_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.

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Oct 5, 2022
Co-authored-by: delvh <dev.lh@web.de>
@zeripath
Copy link
Contributor Author

zeripath commented Oct 5, 2022

make lgtm work

@zeripath zeripath merged commit 93df41f into go-gitea:main Oct 5, 2022
@zeripath zeripath deleted the small-additional-fix-to-katex branch October 5, 2022 18:55
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants