reverse_markdown
reverse_markdown copied to clipboard
Fix text sticking after list
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
@xijo What do you think of this PR?