aboutsummaryrefslogtreecommitdiffstats
path: root/ui-log.c
diff options
context:
space:
mode:
authorJason A. Dönerfield <no-replay@sl0p.foo>2026-07-18 21:13:31 +0200
committerJason A. Dönerfield <no-replay@sl0p.foo>2026-07-18 21:31:00 +0200
commitb9b2876ba7790b0e92e2c66f516d374ce7d53905 (patch)
tree131f313f30f299388c6700817a961f1050bfc5ef /ui-log.c
parentmd2html: render linked .md via the about view, fix relative base (diff)
downloadcgit-b9b2876ba7790b0e92e2c66f516d374ce7d53905.tar.gz
cgit-b9b2876ba7790b0e92e2c66f516d374ce7d53905.tar.xz
cgit-b9b2876ba7790b0e92e2c66f516d374ce7d53905.zip
md2html: do not loosen tight lists with multi-line items
The list-interrupt preprocessor inserted a blank line before any bullet that followed a non-item, non-4-space-indented line. When a list item wrapped onto a 2-space-indented continuation line, the *next* item looked like a paragraph->list transition, so a blank got injected between items — turning a tight list into a loose one (every <li> wrapped in <p>), as seen in docs/internals.md "Writing programs in C". Track list state and only interrupt an actual paragraph: a bullet that continues an already-open list (or its indented continuation lines) no longer triggers a blank-line insert. The original paragraph->list interrupt and the "1985." ordered-list guard are unchanged.
Diffstat (limited to 'ui-log.c')
0 files changed, 0 insertions, 0 deletions