GFM doesn't handle escaped pipes in code blocks #1237
Labels
help wanted
L1 - broken
Valid usage causes incorrect output OR a crash AND there is no known workaround for the issue
parser: GFM
Marked version: 0.3.19
Markdown flavor: GitHub Flavored Markdown
Expectation
I expect that pipes will be parsed in accordance with the GFM specification, such as example 193. It's labeled "Include a pipe in a cell’s content by escaping it, including inside other inline spans:". The example indicates that you can include a pipe in a code block in a table by escaping it with a backslash.
Result
When rendering this document with GFM turned on, the pipes in the code blocks actually create new table cells.
Marked Demo: https://codepen.io/recursive/pen/yjeBVW - I didn't use marked.js.org because I couldn't see how to turn on GFM from there.
What was attempted
Here's the code I'm using.
The text was updated successfully, but these errors were encountered: