You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/modules/markup/markdown
wxiaoguang 3f9c3e7bc3
Refactor render system (#32492)
There were too many patches to the Render system, it's really difficult
to make further improvements.

This PR clears the legacy problems and fix TODOs.

1. Rename `RenderContext.Type` to `RenderContext.MarkupType` to clarify
its usage.
2. Use `ContentMode` to replace `meta["mode"]` and `IsWiki`, to clarify
the rendering behaviors.
3. Use "wiki" mode instead of "mode=gfm + wiki=true"
4. Merge `renderByType` and `renderByFile`
5. Add more comments

----

The problem of "mode=document": in many cases it is not set, so many
non-comment places use comment's hard line break incorrectly
3 months ago
..
math Fix markdown preview $$ support (#31514) 7 months ago
ast.go Refactor markdown attention render (#29833) 11 months ago
convertyaml.go Improve Wiki TOC (#24137) 2 years ago
goldmark.go Refactor render system (#32492) 3 months ago
main_test.go Use repo as of renderctx's member rather than a repoPath on metas (#29222) 8 months ago
markdown.go Refactor render system (#32492) 3 months ago
markdown_test.go Refactor render system (#32492) 3 months ago
meta.go Replace `interface{}` with `any` (#25686) 2 years ago
meta_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
prefixed_id.go Refactor to use UnsafeStringToBytes (#31358) 8 months ago
renderconfig.go Fix task list checkbox toggle to work with YAML front matter (#25184) 2 years ago
renderconfig_test.go Improve Wiki TOC (#24137) 2 years ago
toc.go Refactor markup package (#32399) 3 months ago
transform_blockquote.go Update go dependencies (#32389) 3 months ago
transform_codespan.go Update go dependencies (#32389) 3 months ago
transform_heading.go Refactor markup package (#32399) 3 months ago
transform_image.go Refactor render system (#32492) 3 months ago
transform_link.go Fix rendered wiki page link (#31398) 8 months ago
transform_list.go Resolve lint for unused parameter and unnecessary type arguments (#30750) 9 months ago