diff options
| author | Jason A. Dönerfield <no-replay@sl0p.foo> | 2026-07-18 21:13:31 +0200 |
|---|---|---|
| committer | Jason A. Dönerfield <no-replay@sl0p.foo> | 2026-07-18 21:31:00 +0200 |
| commit | b9b2876ba7790b0e92e2c66f516d374ce7d53905 (patch) | |
| tree | 131f313f30f299388c6700817a961f1050bfc5ef /tests | |
| parent | md2html: render linked .md via the about view, fix relative base (diff) | |
| download | cgit-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 'tests')
0 files changed, 0 insertions, 0 deletions
