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
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
..
asciicast Support asciicast files as new markup (#22448) 2 years ago
common Make `user-content-* ` consistent with github (#26388) 2 years ago
console Refactor render system (#32492) 3 months ago
csv Add `MAX_ROWS` option for CSV rendering (#30268) 8 months ago
external Rework markup link rendering (#26745) 1 year ago
markdown Refactor render system (#32492) 3 months ago
mdstripper Update go dependencies (#32389) 3 months ago
orgmode Refactor render system (#32492) 3 months ago
camo.go Use camo.Always instead of camo.Allways (#32097) 4 months ago
camo_test.go Use camo.Always instead of camo.Allways (#32097) 4 months ago
html.go Refactor render system (#32492) 3 months ago
html_codepreview.go Refactor AppURL usage (#30885) 9 months ago
html_codepreview_test.go Refactor render system (#32492) 3 months ago
html_commit.go Refactor markup package (#32399) 3 months ago
html_email.go Refactor markup package (#32399) 3 months ago
html_emoji.go Refactor markup package (#32399) 3 months ago
html_internal_test.go Refactor render system (#32492) 3 months ago
html_issue.go Refactor render system (#32492) 3 months ago
html_link.go Refactor render system (#32492) 3 months ago
html_mention.go Refactor markup package (#32399) 3 months ago
html_node.go Refactor render system (#32492) 3 months ago
html_test.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
render.go Refactor render system (#32492) 3 months ago
render_helper.go Refactor markup package (#32399) 3 months ago
render_links.go Refactor markup package (#32399) 3 months ago
renderer.go Refactor markup package (#32399) 3 months ago
renderer_test.go Move `IsReadmeFile*` from `modules/markup/` to `modules/util` (#22877) 2 years ago
sanitizer.go Split sanitizer functions and fine-tune some tests (#31192) 8 months ago
sanitizer_custom.go Split sanitizer functions and fine-tune some tests (#31192) 8 months ago
sanitizer_default.go Support quote selected comments to reply (#32431) 3 months ago
sanitizer_default_test.go Split sanitizer functions and fine-tune some tests (#31192) 8 months ago
sanitizer_description.go Split sanitizer functions and fine-tune some tests (#31192) 8 months ago
sanitizer_description_test.go Split sanitizer functions and fine-tune some tests (#31192) 8 months ago