gitea/modules/markup
wxiaoguang 0d8bd7720d
Refactor highlight and diff (#36599)
1. fix a performance regression when using line-by-line highlighting
* the root cause is that chroma's `lexers.Get` is slow and a lexer cache
is missing during recent changes
2. clarify the chroma lexer detection behavior
* now we fully manage our logic to detect lexer, and handle overriding
problems, everything is fully under control
3. clarify "code analyze" behavior, now only 2 usages:
* only use file name and language to detect lexer (very fast), mainly
for "diff" page which contains a lot of files
* if no lexer is detected by file name and language, use code content to
detect again (slow), mainly for "view file" or "blame" page, which can
get best result
4. fix git diff bug, it caused "broken pipe" error for large diff files
2026-02-13 00:15:46 +00:00
..
asciicast Support rendering OpenAPI spec (#36449) 2026-01-26 10:34:38 +08:00
common Fix markup heading parsing, fix emphasis parsing (#36284) 2026-01-23 20:24:58 +00: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 Support rendering OpenAPI spec (#36449) 2026-01-26 10:34:38 +08:00
internal Make external iframe render work (#35730) 2025-10-23 08:01:38 +00:00
markdown Support rendering OpenAPI spec (#36449) 2026-01-26 10:34:38 +08: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
camo_test.go
html.go Fix various bugs (#36446) 2026-01-24 11:30:47 +00:00
html_codepreview.go
html_codepreview_test.go
html_commit.go Fix various bugs (#36446) 2026-01-24 11:30:47 +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 Refactor markup render to fix various path problems (#34114) 2025-04-04 23:45:23 +08:00
html_issue.go Refactor markup render to fix various path problems (#34114) 2025-04-04 23:45:23 +08: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 link/origin referrer and login redirect (#36279) 2026-01-03 11:43:04 +08:00
html_mention.go Refactor markup render to fix various path problems (#34114) 2025-04-04 23:45:23 +08: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 Fix various bugs (#36446) 2026-01-24 11:30:47 +00: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 Support rendering OpenAPI spec (#36449) 2026-01-26 10:34:38 +08: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 various typos in codebase (#35480) 2025-09-13 10:34:43 -04:00
render_link_test.go
renderer.go Support rendering OpenAPI spec (#36449) 2026-01-26 10:34:38 +08:00
sanitizer.go
sanitizer_custom.go
sanitizer_default.go Improve and fix markup code preview rendering (#35777) 2025-10-30 05:15:42 +00:00
sanitizer_default_test.go Refactor wiki (#34805) 2025-06-22 18:53:33 +08:00
sanitizer_description.go
sanitizer_description_test.go Fix link/origin referrer and login redirect (#36279) 2026-01-03 11:43:04 +08:00