gitea/modules/markup/markdown
wxiaoguang 6cee3bfa96
Refactor markup render to fix various path problems (#34114)
* 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"
2025-04-04 23:45:23 +08:00
..
math enable staticcheck QFxxxx rules (#34064) 2025-03-29 17:32:28 -04:00
ast.go Fix markdown frontmatter rendering (#34102) 2025-04-03 05:48:24 +00:00
convertyaml.go Fix markdown frontmatter rendering (#34102) 2025-04-03 05:48:24 +00:00
goldmark.go Refactor markup render to fix various path problems (#34114) 2025-04-04 23:45:23 +08:00
main_test.go Refactor markup render system (#32612) 2024-11-24 16:18:57 +08:00
markdown.go Fix markdown frontmatter rendering (#34102) 2025-04-03 05:48:24 +00:00
markdown_attention_test.go Fix markdown render (#33870) 2025-03-13 12:14:35 -07:00
markdown_benchmark_test.go Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
markdown_math_test.go Refactor markdown math render (#32831) 2024-12-14 13:43:05 +08:00
markdown_test.go Refactor markup render to fix various path problems (#34114) 2025-04-04 23:45:23 +08:00
meta.go Replace `interface{}` with `any` (#25686) 2023-07-04 18:36:08 +00:00
meta_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
prefixed_id.go Refactor to use UnsafeStringToBytes (#31358) 2024-06-14 01:26:33 +00:00
renderconfig.go Fix markdown frontmatter rendering (#34102) 2025-04-03 05:48:24 +00:00
renderconfig_test.go Fix markdown frontmatter rendering (#34102) 2025-04-03 05:48:24 +00:00
toc.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
transform_blockquote.go Fix markdown render (#33870) 2025-03-13 12:14:35 -07:00
transform_codespan.go Refactor markup render system (#32533) 2024-11-18 13:25:42 +08:00
transform_heading.go Refactor markup package (#32399) 2024-11-04 10:59:50 +00:00
transform_list.go Refactor markup render system (#32533) 2024-11-18 13:25:42 +08:00