[Table Extension] Escaped pipe character in code is shown #212

Open
opened 2026-01-29 14:30:35 +00:00 by claunia · 0 comments
Owner

Originally created by @yishengjin1413 on GitHub (Jul 10, 2018).

Hi,

We now have a issue that when escaped pipe in code appear in table. Markdig have different behavior with github. I test on babelmark and here is the example:

|  Category |   Expression      |  Description  |
|-----------|-------------------|---------------|
| D         | `x \| y`          |   Description |
| C         | *x \| y*          |   Description |
| B         |  x \| y           |   Description |
| A         | `x  | y`          |   Description |

Markdig result:

Category Expression Description
D x \| y Description
C x | y Description
B x | y Description
A x | y Description

Github result:

Category Expression Description
D x | y Description
C x | y Description
B x | y Description
A `x y`

Is it possible for markdig to keep the same behavior with github in this case?

Originally created by @yishengjin1413 on GitHub (Jul 10, 2018). Hi, We now have a issue that when escaped pipe in code appear in table. Markdig have different behavior with github. I test on [babelmark](https://babelmark.github.io/?text=%7C++Category+%7C+++Expression++++++%7C++Description++%7C%0A%7C-----------%7C-------------------%7C---------------%7C%0A%7C+D+++++++++%7C+%60x+%5C%7C+y%60++++++++++%7C+++Description+%7C%0A%7C+C+++++++++%7C+*x+%5C%7C+y*++++++++++%7C+++Description+%7C%0A%7C+B+++++++++%7C++x+%5C%7C+y+++++++++++%7C+++Description+%7C%0A%7C+A+++++++++%7C+%60x++%7C+y%60++++++++++%7C+++Description+%7C) and here is the example: ``` | Category | Expression | Description | |-----------|-------------------|---------------| | D | `x \| y` | Description | | C | *x \| y* | Description | | B | x \| y | Description | | A | `x | y` | Description | ``` Markdig result: <table> <thead> <tr> <th> Category </th> <th> Expression </th> <th> Description </th> </tr> </thead> <tbody> <tr> <td> D </td> <td> <code>x \| y</code> </td> <td> Description </td> </tr> <tr> <td> C </td> <td> <em>x | y</em> </td> <td> Description </td> </tr> <tr> <td> B </td> <td> x | y </td> <td> Description </td> </tr> <tr> <td> A </td> <td> <code>x | y</code> </td> <td> Description </td> </tr> </tbody> </table> Github result: <table> <thead> <tr> <th> Category </th> <th> Expression </th> <th> Description </th> </tr> </thead> <tbody> <tr> <td> D </td> <td> <code>x | y</code> </td> <td> Description </td> </tr> <tr> <td> C </td> <td> <em>x | y</em> </td> <td> Description </td> </tr> <tr> <td> B </td> <td> x | y </td> <td> Description </td> </tr> <tr> <td> A </td> <td> `x </td> <td> y` </td> </tr> </tbody> </table> Is it possible for markdig to keep the same behavior with github in this case?
claunia added the enhancement label 2026-01-29 14:30:35 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#212