marked
marked copied to clipboard
The vertical bars within backsticks shouldn't be interpreted as table cell delimiter.
Describe the bug
|**Meaning**|Main axis|
|---|---|
|**Values**|`row | row-reverse | column | column-reverse`|
is not correctly rendered as table. The vertical bars within backsticks shouldn't be interpreted as table cell delimiter. Related to https://github.com/markedjs/marked/issues/113
StackEdit (among others) supports it.
To Reproduce demo
Expected behavior
Meaning | Main axis |
---|---|
Values | row | row-reverse | column | column-reverse |
There's no easy way to fix this with regexes
It seems like marked actually renders this the same as GitHub:
|**Meaning**|Main axis|
|---|---|
|**Values**|`row | row-reverse | column | column-reverse`|
Meaning | Main axis |
---|---|
Values | `row |
GitHub requires the pipes to be escaped
|**Meaning**|Main axis|
|---|---|
|**Values**|`row \| row-reverse \| column \| column-reverse`|
Meaning | Main axis |
---|---|
Values | row | row-reverse | column | column-reverse |