Skip to content

In a github table, an inline code block that contains a | adds columns - it should not #64

@Thraka

Description

@Thraka

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 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions