tdemin/gmnhg

Problem with bullets in blockquotes

Opened this issue · 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.

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