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
When a pipe is in a table, you can escape it with a \ on github markdown. In hexo-renderer-marked this does not work. As seen below, it works as intended here. But if you copy paste that table into hexo-renderer-markedrow3 cell2 will behave just like row2 cell2 without an escape.
|col1 |col2 |
|-----|-----|
|row1|`cell2`|
|row2|`this cell2 has no | escape on the pipe`|
|row3|`this cell2 has an \| escape on the pipe`|
col1
col2
row1
cell2
row2
`this cell2 has no
row3
this cell2 has an | escape on the pipe
The text was updated successfully, but these errors were encountered:
Table syntax are not part of commonmark but an extension by marked and GFM.
Older versions of marked and GFM diverged on this, but a recent marked PR addressed the issue.
The marked demo seems to render the example in the OP the same way as GFM. Updating the dependency to [email protected] should fix the issue.
I'm not super familiar with nodejs and npm. How do I make sure I get the specific version, and how do I make sure that the renderer will use it? I tried running npm install --save [email protected] which it seemed to have updated but it didn't fix the problem. I want to make sure that I did indeed change the marked version that the renderer is using.
This has to be fixed in this package here, not in your app. The version range is not compatible. This is a breaking change so it would require some checks before updating it.
When a pipe is in a table, you can escape it with a \ on github markdown. In hexo-renderer-marked this does not work. As seen below, it works as intended here. But if you copy paste that table into hexo-renderer-marked
row3 cell2
will behave just likerow2 cell2
without an escape.cell2
this cell2 has an | escape on the pipe
The text was updated successfully, but these errors were encountered: