diff options
| author | Jason A. Dönerfield <no-replay@sl0p.foo> | 2026-07-17 00:38:46 +0200 |
|---|---|---|
| committer | Jason A. Dönerfield <no-replay@sl0p.foo> | 2026-07-18 21:31:00 +0200 |
| commit | f736dbeb318386b1292bf00d0199bc3771d849f7 (patch) | |
| tree | 0fe4442cafe784e803cd397f7d0cac7e04009f85 /configfile.h | |
| parent | md2html: rewrite relative image links to the plain/ blob URL (diff) | |
| download | cgit-f736dbeb318386b1292bf00d0199bc3771d849f7.tar.gz cgit-f736dbeb318386b1292bf00d0199bc3771d849f7.tar.xz cgit-f736dbeb318386b1292bf00d0199bc3771d849f7.zip | |
md2html: let bullet/1. lists interrupt paragraphs (GitHub-style)
Python-Markdown, unlike CommonMark/GitHub, refuses to start a list that
immediately follows a paragraph line without an intervening blank line, so a
very common README shape renders as one run-on paragraph:
Passing:
- foo
- bar
Add a preprocessor that inserts the blank line when a bullet (- * +) or a
1./1) ordered marker follows a paragraph line, restoring GitHub behavior.
Only '1' interrupts for ordered lists (matching CommonMark) so prose like
'... the year\n1985. was ...' is not turned into a list. Fenced/indented
code and lines already inside a list are left untouched.
Diffstat (limited to 'configfile.h')
0 files changed, 0 insertions, 0 deletions
