aboutsummaryrefslogtreecommitdiffstats
path: root/modules/markup/render_helper.go
Commit message (Collapse)AuthorAgeFilesLines
* Refactor markup render to fix various path problems (#34114)wxiaoguang6 days1-8/+7
| | | | | | | | | | | * 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"
* Add sub issue list support (#32940)wxiaoguang2024-12-241-0/+1
| | | Just like GitHub, show issue icon/title when the issue number is in a list
* Refactor markup render system (#32612)wxiaoguang2024-11-241-6/+42
| | | | | | | | | | 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)
* Refactor markup package (#32399)wxiaoguang2024-11-041-0/+21
To make the markup package easier to maintain: 1. Split some go files into small files 2. Use a shared util.NopCloser, remove duplicate code 3. Remove unused functions