1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-22 16:44:26 +00:00
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
2024-11-14 05:02:11 +00:00
..
asciicast Support asciicast files as new markup (#22448) 2023-01-18 08:46:58 +08:00
common Make user-content-* consistent with github (#26388) 2023-08-09 09:30:31 +00:00
console Refactor render system (#32492) 2024-11-14 05:02:11 +00:00
csv Add MAX_ROWS option for CSV rendering (#30268) 2024-06-06 16:06:59 +08:00
external Rework markup link rendering (#26745) 2024-01-15 08:49:24 +00:00
markdown Refactor render system (#32492) 2024-11-14 05:02:11 +00:00
mdstripper Update go dependencies (#32389) 2024-10-31 12:05:54 +00:00
orgmode Refactor render system (#32492) 2024-11-14 05:02:11 +00:00
camo_test.go Use camo.Always instead of camo.Allways (#32097) 2024-09-21 12:50:54 +03:00
camo.go Use camo.Always instead of camo.Allways (#32097) 2024-09-21 12:50:54 +03:00
html_codepreview_test.go Refactor render system (#32492) 2024-11-14 05:02:11 +00:00
html_codepreview.go Refactor AppURL usage (#30885) 2024-05-07 08:26:13 +00:00
html_commit.go Refactor markup package (#32399) 2024-11-04 10:59:50 +00:00
html_email.go Refactor markup package (#32399) 2024-11-04 10:59:50 +00:00
html_emoji.go Refactor markup package (#32399) 2024-11-04 10:59:50 +00:00
html_internal_test.go Refactor render system (#32492) 2024-11-14 05:02:11 +00:00
html_issue.go Refactor render system (#32492) 2024-11-14 05:02:11 +00:00
html_link.go Refactor render system (#32492) 2024-11-14 05:02:11 +00:00
html_mention.go Refactor markup package (#32399) 2024-11-04 10:59:50 +00:00
html_node.go Refactor render system (#32492) 2024-11-14 05:02:11 +00:00
html_test.go Refactor render system (#32492) 2024-11-14 05:02:11 +00:00
html.go Refactor render system (#32492) 2024-11-14 05:02:11 +00:00
main_test.go Use repo as of renderctx's member rather than a repoPath on metas (#29222) 2024-05-30 07:04:01 +00:00
render_helper.go Refactor markup package (#32399) 2024-11-04 10:59:50 +00:00
render_links.go Refactor markup package (#32399) 2024-11-04 10:59:50 +00:00
render.go Refactor render system (#32492) 2024-11-14 05:02:11 +00:00
renderer_test.go Move IsReadmeFile* from modules/markup/ to modules/util (#22877) 2023-02-13 15:01:09 -05:00
renderer.go Refactor markup package (#32399) 2024-11-04 10:59:50 +00:00
sanitizer_custom.go Split sanitizer functions and fine-tune some tests (#31192) 2024-05-31 13:26:01 +00:00
sanitizer_default_test.go Split sanitizer functions and fine-tune some tests (#31192) 2024-05-31 13:26:01 +00:00
sanitizer_default.go Support quote selected comments to reply (#32431) 2024-11-07 03:57:07 +00:00
sanitizer_description_test.go Split sanitizer functions and fine-tune some tests (#31192) 2024-05-31 13:26:01 +00:00
sanitizer_description.go Split sanitizer functions and fine-tune some tests (#31192) 2024-05-31 13:26:01 +00:00
sanitizer.go Split sanitizer functions and fine-tune some tests (#31192) 2024-05-31 13:26:01 +00:00