diff --git a/static/ui.js b/static/ui.js index abe4634d..d455065f 100644 --- a/static/ui.js +++ b/static/ui.js @@ -7801,48 +7801,97 @@ 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?'
    ':'/
after all items + for(let i=ln.items.length-1;i>=0;i--) work.push({item:ln.items[i]}); + } else { + html.push(''); + } + } + return html.join(''); } - function _renderLists(src, ordered){ + function _renderLists(src){ + // Single pass over source lines: collect a contiguous list region (any + // marker family, top-level or nested, plus continuation lines) and hand + // it to _renderListBlock, which builds the structural