You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a parsing ambiguity in the following code:
a | b
- | -
1 | 2
It can be interpreted as a table or a list. As of now, github parses it as a list:
a | b
| -
1 | 2
But GFM spec doesn't currently mention anything about list vs table precedence. I believe it should be defined in the spec, as a few people ran into this already.
Three choices here:
The snippet above is a table. In this case, test should be added to spec, and cmark-gfm should be fixed.
The snippet above is a list. In this case, test should be added to spec.
Or this is actual undefined behavior up to implementors, so it should be clearly written in spec as such (I personally would prefer to keep those at a minimum).
The text was updated successfully, but these errors were encountered:
See discussion in laurent22/joplin#7858, markdown-it/markdown-it#767.
There is a parsing ambiguity in the following code:
It can be interpreted as a table or a list. As of now, github parses it as a list:
But GFM spec doesn't currently mention anything about list vs table precedence. I believe it should be defined in the spec, as a few people ran into this already.
Three choices here:
cmark-gfm
should be fixed.The text was updated successfully, but these errors were encountered: