-
-
Notifications
You must be signed in to change notification settings - Fork 9
Closed as not planned
Closed as not planned
Copy link
Labels
👎 phase/noPost cannot or will not be acted onPost cannot or will not be acted on🙅 no/wontfixThis is not (enough of) an issue for this projectThis is not (enough of) an issue for this project
Description
Initial checklist
- I read the support docs
- I read the contributing guide
- I agree to follow the code of conduct
- I searched issues and discussions and couldn’t find anything (or linked relevant results below)
Affected package
mdast-util-gfm-table
Steps to reproduce
Consider this source code, it tries to render three inline code blocks (\\|, \| and |) in the table:
| Two backslashes and a pipe | A backslash and a pipe | A single pipe |
| -------------------------- | ---------------------- | ------------- |
| `\\\|` | `\\|` | `\|` |Actual behavior
The inline block in the (2, 2) cell is broken, and looks like this:
| Two backslashes and a pipe | A backslash and a pipe | A single pipe |
|---|---|---|
\\| |
`\ | ` |
It seems that render a inline code block in the table cell containing \| is impossible.
In other inline spans such as strong, we can escape backslash with backslash to solve this problem. However, since inline code block does not allow escaping backslash, we cannot do as the same way.
| Two backslashes and a pipe | A backslash and a pipe | A single pipe |
| -------------------------- | ---------------------- | ------------- |
| **\\\\\|** | **\\\|** | **\|** || Two backslashes and a pipe | A backslash and a pipe | A single pipe |
|---|---|---|
| \\| | \| | | |
Expected behavior
The inline code block in the (2, 2) cell should work properly. (Or exist a method to achieve the same effect).
Runtime
No response
Package manager
No response
Operating system
No response
Build and bundle tools
No response
Metadata
Metadata
Assignees
Labels
👎 phase/noPost cannot or will not be acted onPost cannot or will not be acted on🙅 no/wontfixThis is not (enough of) an issue for this projectThis is not (enough of) an issue for this project