gitea/modules/markup
wxiaoguang 8fcbdf05b0
Refactor flash message and remove SanitizeHTML template func (#37179)
1. Fix the "flash message" layout problem for different cases
* I am sure most of the users should have ever seen the ugly
center-aligned error message with multiple lines.
2. Fix inconsistent "Details" flash message EOL handling, sometimes
`\n`, sometimes `<br>`
   * Now, always use "\n" and use `<pre>` to render
3. Remove SanitizeHTML template func because it is not useful and can be
easily abused.
* But it is still kept for mail templates, for example:
https://github.com/go-gitea/gitea/issues/36049
4. Clarify PostProcessCommitMessage's behavior and add FIXME comment

By the way: cleaned up some devtest pages, move embedded style block to
CSS file
2026-04-12 10:17:25 +08:00
..
asciicast Support rendering OpenAPI spec (#36449) 2026-01-26 10:34:38 +08:00
common Fix various trivial problems (#36921) 2026-03-19 07:13:55 +08:00
console Support rendering OpenAPI spec (#36449) 2026-01-26 10:34:38 +08:00
csv Support rendering OpenAPI spec (#36449) 2026-01-26 10:34:38 +08:00
external Merge some standalone Vite entries into index.js (#37085) 2026-04-05 19:13:34 +00:00
internal Make external iframe render work (#35730) 2025-10-23 08:01:38 +00:00
markdown Make Markdown fenced code block work with more syntaxes (#37154) 2026-04-09 23:54:39 +00:00
mdstripper Fix markup heading parsing, fix emphasis parsing (#36284) 2026-01-23 20:24:58 +00:00
orgmode Refactor highlight and diff (#36599) 2026-02-13 00:15:46 +00:00
camo.go Fix URLJoin, markup render link reoslving, sign-in/up/linkaccount page common data (#36861) 2026-03-08 15:57:37 +00:00
camo_test.go
html.go Refactor flash message and remove SanitizeHTML template func (#37179) 2026-04-12 10:17:25 +08:00
html_codepreview.go
html_codepreview_test.go
html_commit.go Fix URLJoin, markup render link reoslving, sign-in/up/linkaccount page common data (#36861) 2026-03-08 15:57:37 +00:00
html_email.go
html_emoji.go Avoid emoji mismatch and allow to only enable chosen emojis (#35692) 2025-10-19 13:06:45 -07:00
html_internal_test.go Remove `util.URLJoin` and replace all callers with direct path concatenation (#36867) 2026-03-09 02:30:54 +08:00
html_issue.go Fix URLJoin, markup render link reoslving, sign-in/up/linkaccount page common data (#36861) 2026-03-08 15:57:37 +00:00
html_issue_test.go
html_link.go Fix URLJoin, markup render link reoslving, sign-in/up/linkaccount page common data (#36861) 2026-03-08 15:57:37 +00:00
html_mention.go Fix URLJoin, markup render link reoslving, sign-in/up/linkaccount page common data (#36861) 2026-03-08 15:57:37 +00:00
html_node.go Fix markup heading parsing, fix emphasis parsing (#36284) 2026-01-23 20:24:58 +00:00
html_node_test.go fix: generate IDs for HTML headings without id attribute (#36233) 2026-01-06 05:09:44 +00:00
html_test.go Remove `util.URLJoin` and replace all callers with direct path concatenation (#36867) 2026-03-09 02:30:54 +08:00
html_toc_test.go Fix markup heading parsing, fix emphasis parsing (#36284) 2026-01-23 20:24:58 +00:00
main_test.go Support rendering OpenAPI spec (#36449) 2026-01-26 10:34:38 +08:00
render.go Merge some standalone Vite entries into index.js (#37085) 2026-04-05 19:13:34 +00:00
render_helper.go
render_link.go Fix URLJoin, markup render link reoslving, sign-in/up/linkaccount page common data (#36861) 2026-03-08 15:57:37 +00:00
render_link_test.go Fix URLJoin, markup render link reoslving, sign-in/up/linkaccount page common data (#36861) 2026-03-08 15:57:37 +00:00
render_test.go Merge some standalone Vite entries into index.js (#37085) 2026-04-05 19:13:34 +00:00
renderer.go Support rendering OpenAPI spec (#36449) 2026-01-26 10:34:38 +08:00
sanitizer.go
sanitizer_custom.go
sanitizer_default.go Fix various legacy problems (#37092) 2026-04-03 12:19:04 +00:00
sanitizer_default_test.go Fix various legacy problems (#37092) 2026-04-03 12:19:04 +00:00
sanitizer_description.go
sanitizer_description_test.go Fix link/origin referrer and login redirect (#36279) 2026-01-03 11:43:04 +08:00