aboutsummaryrefslogtreecommitdiffstats
path: root/models/renderhelper
Commit message (Collapse)AuthorAgeFilesLines
* Fix markdown render behaviors (#34122)HEADmainwxiaoguang8 hours3-6/+3
| | | | | | | * Fix #27645 * Add config options `MATH_CODE_BLOCK_DETECTION`, problematic syntaxes are disabled by default * Fix #33639 * Add config options `RENDER_OPTIONS_*`, old behaviors are kept
* Refactor markup render to fix various path problems (#34114)wxiaoguang20 hours7-34/+38
| | | | | | | | | | | * Fix #33972 * Use consistent path resolving for links and medias. * No need to make the markup renders to resolve the paths, instead, the paths are all correctly resolved in the "post process" step. * Fix #33274 * Since 1.23, all paths starting with "/" are relative to current render context (for example: the current repo branch) * Introduce `/:root/path-relative-to-root`, then the path will be rendered as relative to "ROOT_URL"
* Use test context in tests and new loop system in benchmarks (#33648)TheFox0x72025-02-204-17/+13
| | | | | | | | Replace all contexts in tests with go1.24 t.Context() --------- Co-authored-by: Giteabot <teabot@gitea.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Refactor render system (orgmode) (#32671)wxiaoguang2024-11-291-0/+39
| | | Close #29100
* Refactor markup render system (#32612)wxiaoguang2024-11-2410-0/+603
This PR removes (almost) all path tricks, and introduces "renderhelper" package. Now we can clearly see the rendering behaviors for comment/file/wiki, more details are in "renderhelper" tests. Fix #31411 , fix #18592, fix #25632 and maybe more problems. (ps: fix #32608 by the way)