diff options
Diffstat (limited to 'mdoc_markdown.c')
-rw-r--r-- | mdoc_markdown.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mdoc_markdown.c b/mdoc_markdown.c index 5e221e19..1dbdb401 100644 --- a/mdoc_markdown.c +++ b/mdoc_markdown.c @@ -375,6 +375,8 @@ md_stack(char c) static void md_preword(void) { + const char *cp; + /* * If a list block is nested inside a code block or a blockquote, * blank lines for paragraph breaks no longer work; instead, @@ -405,7 +407,11 @@ md_preword(void) if (outflags & (MD_nl | MD_br | MD_sp)) { putchar('\n'); - fputs(md_stack('\0'), stdout); + for (cp = md_stack('\0'); *cp != '\0'; cp++) { + putchar(*cp); + if (*cp == '>') + putchar(' '); + } outflags &= ~(MD_nl | MD_br | MD_sp); escflags = ESC_BOL; outcount = 0; |