gomarkdown / markdown

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

Table without an empty line before it, is not parsed #214

Closed DenisDuev closed 2 years ago

DenisDuev commented 2 years ago
some text:
| Option        | Type | Description |
| ------------- | ---- |-------------|
| a      | string | some description |

Results in: image

The same in GitHub:

some text: Option Type Description
a string some description
miekg commented 2 years ago

commonmark doesn't do tables, so not sure what's right here

DenisDuev commented 2 years ago

Yep, I check Babelmark and it is NOT supported by most of the parsers, only by some of them. So I am also wondering what is the proper behaviour.

miekg commented 2 years ago

see linked PR, fix is really straightforward.