gmnhg icon indicating copy to clipboard operation
gmnhg copied to clipboard

Problem with bullets in blockquotes

Open mntn-xyz opened this issue 3 years ago • 1 comments

I was quoting a post where someone used bullets and it concatenated all the bulleted text onto a single line.

This is an example of a broken blockquote

  • Item 1
  • Item 2
  • Item 3

Becomes

This is an example of a broken blockquote

Item 1Item 2Item 3

I'll look at it when I have some free time, I'm sure it's something about the handling of lists inside of blockquotes.

mntn-xyz avatar Oct 11 '21 22:10 mntn-xyz

Looks like (Renderer).textWithNewlineReplacement() needs a new text extraction heuristic specifically for lists. The default list renderer logic only kicks in when the lists themselves have the document as their parent.

Quick reproduction sample for tests, etc:

> Blockquote example
>
> * List item 1
> * List item 2
>   1. Nested list item 1.
>   2. Nested list item 2.
> * Closing item

tdemin avatar Oct 12 '21 03:10 tdemin