aboutsummaryrefslogtreecommitdiffstats
path: root/ui-snapshot.h
diff options
context:
space:
mode:
authorJason A. Dönerfield <no-replay@sl0p.foo>2026-07-17 00:38:46 +0200
committerJason A. Dönerfield <no-replay@sl0p.foo>2026-07-18 21:31:00 +0200
commitf736dbeb318386b1292bf00d0199bc3771d849f7 (patch)
tree0fe4442cafe784e803cd397f7d0cac7e04009f85 /ui-snapshot.h
parentmd2html: rewrite relative image links to the plain/ blob URL (diff)
downloadcgit-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 'ui-snapshot.h')
0 files changed, 0 insertions, 0 deletions