0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-04-07 13:35:40 +02:00

3 Commits

Author SHA1 Message Date
hamki
1004c2250f Refactor TOC rendering and improve HTML structure
- Updated the rendering of table of contents (TOC) items to ensure proper closing of list items in HTML.
- Removed redundant header extraction logic from orgmode, enabling TOC extraction during post-processing.
- Simplified sidebar visibility state management by utilizing user settings instead of localStorage.

This enhances the overall structure and maintainability of the markup rendering process.
2026-02-03 06:24:21 +08:00
hamki
a8a1873b27
fix: correct HTML nesting structure in TOC rendering
Fix invalid HTML structure where <ul> was directly nested inside <ul>.
According to HTML specification, nested <ul> elements must be wrapped
in <li> elements.

Before: <ul><ul>...</ul></ul>
After:  <ul><li><ul>...</ul></li></ul>
2026-01-26 17:27:10 +08:00
Heath Dutton🕴️
0f78b99998
Fix markup heading parsing, fix emphasis parsing (#36284)
Fixes #36106, fix #17958

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2026-01-23 20:24:58 +00:00