gomarkdown / markdown

markdown parser and HTML renderer for Go
Other
1.41k stars 173 forks source link

Space at the end of the line brakes tables #198

Closed ghost closed 3 years ago

ghost commented 3 years ago

If there is a space in the end of the line after | table is not resolved as a table but as a paragraph.

Example : (There is space after "Test Text|")

| Syntax      | Description | Test Text| 
| :---        |    :----:   |          ---: |
| Header      | Title       | Here's this   |
| Paragraph   | Text        | And more      |

Is resolved as :

<p>\| Syntax      \| Description \| Test Text\|
--
  | \| :&mdash;        \|    :&mdash;-:   \|          &mdash;: \|
  | \| Header      \| Title       \| Here&rsquo;s this   \|
  | \| Paragraph   \| Text        \| And more      \|</p>
ivanspasov99 commented 3 years ago

Same problem here...