Markdown writer: fix bug with block quotes in lists.

Closes #9908.
This commit is contained in:
John MacFarlane
2024-06-23 14:33:58 -07:00
parent 07602dedae
commit 965de61edb
2 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -592,7 +592,7 @@ blockToMarkdown' opts (BlockQuote blocks) = do
| variant == PlainText = " "
| otherwise = "> "
contents <- blockListToMarkdown opts blocks
return $ prefixed leader contents <> blankline
return $ text leader <> prefixed leader contents <> blankline
blockToMarkdown' opts t@(Table (ident,_,_) blkCapt specs thead tbody tfoot) = do
let (caption, aligns, widths, headers, rows) = toLegacyTable blkCapt specs thead tbody tfoot
let numcols = maximum (length aligns :| length widths :
+10
View File
@@ -0,0 +1,10 @@
```
% pandoc -f native -t markdown
[ BulletList
[ [ BlockQuote [ Para [ Str "a" ] , Para [ Str "b" ] ] ] ]
]
^D
- > a
>
> b
```