A `|` in a code in a table breaks the table
See original GitHub issueSubject of the issue
SSIA
Your environment
- OS: macOS
- Packages: @mdx-js/runtime v1.6.18
- Env: node 14.2.0, yarn 1.22.4
Steps to reproduce
Sample: https://codesandbox.io/s/brave-goldberg-qe2uv?file=/src/Content.mdx
Read the markdown below with mdx.
| title1 | title2 | title3 |
|--------|----------------------|--------------------------------|
| foo | `string | undefined` | this message should be visible |
Expected behaviour
The string | undefined
is recognized as a code.
Actual behaviour
The |
in the code (`) is recognized as a table separator.
https://codesandbox.io/s/brave-goldberg-qe2uv?file=/src/Content.mdx
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:13 (11 by maintainers)
Top Results From Across the Web
4 ways to control page breaks within tables and table styles ...
Reading the property. For a newly-created style, the default value is 1. Here is some sample VBA code from the immediate window: ?ActiveDocument....
Read more >How to Handle Page Breaks when Printing a Large HTML Table
In this snippet, we're going to show how to deal with the problem connected with page break when you print a large HTML...
Read more >How to deal with page breaks when printing a large HTML table
Just add the js to your code and add the class 'splitForPrint' to your table and it will neatly split the table into...
Read more >Page Breaks in a table - Microsoft Word for Mac - 16.3
Select the row. · On the Home tab, open the Paragraph formatting dialog. · Select the Line and Page Breaks tab. · Uncheck...
Read more >Break in a Table control - PC SOFT - Online documentation
WEBDEV - Server code WEBDEV - Browser code PHP the Table controls in Standard, Ajax and Browser mode. WINDEV Remarks: At runtime, the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
GitHub doesn’t allow a pipe in code (text) in a table cell. You can escape it here on GitHub (note: escaping stuff in code normally doesn’t work, but GFM made an exception for pipes).
So, it seems we’re following GFM here. Could you check if escaping works?
Hmm. That’s annoying. Well, that’s indeed a bug!