lepture / mistune

A fast yet powerful Python Markdown parser with renderers and plugins.
http://mistune.lepture.com/
BSD 3-Clause "New" or "Revised" License
2.59k stars 251 forks source link

Add block_quote prefix on empty lines too #390

Open patrick91 opened 2 months ago

patrick91 commented 2 months ago

I notice that when a blockquote has an empty line it wouldn't be rendered properly, as it would be broken in two blockquotes, from:

> abc
> 
> abc

to

> abc

> abc

Which are rendered differently in html:

abc

abc

and:

abc

abc

lepture commented 2 months ago

Hi, thanks for the fix. Can you add a test case for it?

lepture commented 2 months ago

@patrick91 thanks for your patch. But the tests are failed. Can you have take a look at the errors?

patrick91 commented 2 months ago

@lepture done, the tests are passing locally, I had to rstrip the last > to make it work properly 😊