reverse_markdown icon indicating copy to clipboard operation
reverse_markdown copied to clipboard

Fix text sticking after list

Open Kevinrob opened this issue 2 years ago • 1 comments

I have an issue when parsing text after a list.

<ul>
  <li>item followed with a text</li>
</ul>
text after the list

This HTML is parsed as:

- item followed with a text
 text after the list

But this markdown will collapse text after the list with item followed with a text. We can check here the result.

With this changes, the new output is:

- item followed with a text

text after the list

And now, we don't have the text outside the list collapsed with the last list item. We can check here again.

PS: I fixed a other test about UTF-8, I think that nokogiri changes the way it break with encoding. PS2: I switched byebug by ruby/debug

Kevinrob avatar Nov 03 '23 09:11 Kevinrob

@xijo What do you think of this PR?

Kevinrob avatar Nov 03 '23 09:11 Kevinrob