From 13dd97d60d8c7a34abc36048f5bb773614fcf833 Mon Sep 17 00:00:00 2001 From: webtecnica Date: Sun, 2 Aug 2026 14:58:33 -0300 Subject: [PATCH] fix(renderer): preserve nested mixed ul/ol list hierarchy (#6700) --- static/ui.js | 111 ++++++++++++++--------- tests/test_886_ordered_list_numbering.py | 35 ++++--- tests/test_renderer_js_behaviour.py | 64 ++++++++++++- tests/test_sprint16.py | 40 ++++++-- 4 files changed, 178 insertions(+), 72 deletions(-) diff --git a/static/ui.js b/static/ui.js index abe4634d..cd25232e 100644 --- a/static/ui.js +++ b/static/ui.js @@ -7801,48 +7801,72 @@ function renderMd(raw){ s=s.replace(/^---+$/gm,'
'); // (Blockquotes are handled by the pre-pass at the top of renderMd, before // fence_stash. The per-line passes below never see > prefixes.) - function _renderListBlock(lines, ordered){ - const marker=ordered?'\\d+\\. ':'[-*+] '; - let html=ordered?'
    ':'