showdownjs / showdown

A bidirectional Markdown to HTML to Markdown converter written in Javascript
http://www.showdownjs.com/
MIT License
14.1k stars 1.57k forks source link

Tables rendering wrong when in a list #973

Open babyoumine opened 1 year ago

babyoumine commented 1 year ago

When you put a table in a list the table doesn't stop until there is a double new line.

Example:

For this code:

1. example
|name|age|
|----|----|
|john|25|
|mark|20|

thomas 30 

You should expect only John and Mark to be in the table like so:

grafik

but instead this happens:

grafik

and on top of that if the table is at the end of the code it isn't even rendered:

grafik