Skip to content

Keep lists inside a blockquote as Markdown lists in HTMLToMarkdown - #1422

Merged
davidmezzetti merged 1 commit into
neuml:masterfrom
RavSinghChandan:blockquote-lists
Oct 15, 2026
Merged

davidmezzetti merged 1 commit into
neuml:masterfrom
RavSinghChandan:blockquote-lists

Conversation

@RavSinghChandan

Copy link
Copy Markdown
Contributor

Follow-up to #1408. A list inside a blockquote lost its formatting: block() used child.text, so with compact HTML <blockquote><ul><li>First</li><li>Second</li></ul></blockquote> became > FirstSecond, merging the items into one word. With pretty-printed HTML the items were on separate lines, but without their - or 1. markers.

A list inside a blockquote is now formatted with the existing list handler and then quoted, so both give > - First / > - Second, and ordered lists keep their numbers. Text and paragraphs around the list stay on their own lines, and this also works in article mode. Added cases to testHTML.

@davidmezzetti davidmezzetti added the bug Something isn't working label Oct 15, 2026
@davidmezzetti davidmezzetti added this to the v9.15.0 milestone Oct 15, 2026
@davidmezzetti

Copy link
Copy Markdown
Member

LGTM - Thank you!

@davidmezzetti
davidmezzetti merged commit 29072cd into neuml:master Oct 15, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants