gitea/modules/markup
silverwind d5831b9385
Frontend iframe renderer framework: 3D models, OpenAPI (#37233)
Introduces a frontend external-render framework that runs renderer
plugins inside an `iframe` (loaded via `srcdoc` to keep the CSP
`sandbox` directive working without origin-related console noise), and
migrates the 3D viewer and OpenAPI/Swagger renderers onto it. PDF and
asciicast paths are refactored to share the same `data-render-name`
mechanism.

Adds e2e coverage for 3D, PDF, asciicast and OpenAPI render paths, plus
a regression for the `RefTypeNameSubURL` double-escape on non-ASCII
branch names.

Signed-off-by: silverwind <me@silverwind.io>
Co-authored-by: Claude (Opus 4.6) <noreply@anthropic.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2026-04-17 22:30:17 +00: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 Frontend iframe renderer framework: 3D models, OpenAPI (#37233) 2026-04-17 22:30:17 +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 Valid email address should only start with alphanumeric (#28174) 2025-04-20 19:18:14 +08:00
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 Fix footnote jump behavior on the issue page. (#34621) 2025-06-09 17:18:11 +00:00
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 Frontend iframe renderer framework: 3D models, OpenAPI (#37233) 2026-04-17 22:30:17 +00:00
render_helper.go Refactor markup render to fix various path problems (#34114) 2025-04-04 23:45:23 +08:00
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 Frontend iframe renderer framework: 3D models, OpenAPI (#37233) 2026-04-17 22:30:17 +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