go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
45.29k stars 5.51k forks source link

Fix and refactor markdown rendering #32522

Closed wxiaoguang closed 1 week ago

wxiaoguang commented 1 week ago

Fix #32521

Clarify the render "metas" meanings and usages

We should use clearly defined meta attributes to control the rendering behavior, instead of guessing "mode!=document" or "metas==nil"

Some existing tests are not right, for example, when rendering wiki, the commit URLs should be parsed. Related tests are also updated.

zjjhot commented 1 week ago

Thank you all. :-)