question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

A `|` in a code in a table breaks the table

See original GitHub issue

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

スクリーンショット 2020-10-01 23 41 20 (This capture is Visual Studio Code behavior)

Actual behaviour

The | in the code (`) is recognized as a table separator.

スクリーンショット 2020-10-01 23 43 37

https://codesandbox.io/s/brave-goldberg-qe2uv?file=/src/Content.mdx

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:13 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
wooormcommented, Oct 1, 2020

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?

1reaction
wooormcommented, Oct 1, 2020

Hmm. That’s annoying. Well, that’s indeed a bug!

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found