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.

[docs] Tables which has a pipe in a code are broken

See original GitHub issue

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

code:

| Name                                    | Type                              | Description                                                                                                                                                         |
| --------------------------------------- | --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [iosClientId][g-creds]                  | `string | undefined`              | The iOS client id registered with Google for use in the Expo client app.                                                                                            |

capture:

スクリーンショット 2020-10-02 0 16 16

page: https://docs.expo.io/versions/v39.0.0/sdk/google/

This was caused by #10177 . MDX v1 is GFM compliant, and GFM has same problem.

Name Type Description
[iosClientId][g-creds] `string undefined`

this can be solved with escaping the pipe in GFM.

| Name                                    | Type                              | Description                                                                                                                                                         |
| --------------------------------------- | --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [iosClientId][g-creds]                  | `string \| undefined`              | The iOS client id registered with Google for use in the Expo client app.                                                                                            |
Name Type Description
[iosClientId][g-creds] string | undefined The iOS client id registered with Google for use in the Expo client app.

but, in the MDX v1.6.18, \ is remaining.

スクリーンショット 2020-10-02 0 31 08

This is MDX’s issue. https://github.com/mdx-js/mdx/issues/1285

workaround

revert #10177 😢

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
idecommented, Oct 5, 2020

I agree the second option is better. The issue is non-obvious and needs to be communicated instead of hidden behind a different unicode character since this is text that people type. The divisor character would make sense to me if it were autogenerated on each build and never typed by people, but otherwise no one is going to know they need to type it. Also it presumably breaks copy/pasting from the docs.

0reactions
wooormcommented, Oct 7, 2020

It’s not remark internals. It’s MDX internals

Read more comments on GitHub >

github_iconTop Results From Across the Web

Escaped pipes in docs-readme markdown table are ... - GitHub
Escaped pipes in docs-readme markdown table are causing issues #1777 ... does markdown preview in webstorm), resulting in broken tables.
Read more >
Markdown: Pipe in table cells cannot be escaped - GitLab.org
Markdown: Pipe in table cells cannot be escaped ... No tasks are currently assigned. Use tasks to break down this issue into smaller...
Read more >
Working with Tables in GitHub Markdown - Pluralsight
Individual columns in a table are separated by a pipe character: | . Rows in the table are separated by line breaks. HTML...
Read more >
Troubleshooting Snowpipe - Snowflake Documentation
General Troubleshooting Steps¶ · Step 1: Check the Pipe Status¶ · Step 2. View the COPY History for the Table¶ · Step 3:...
Read more >
Syntax for Regular Expressions - Google Support
The following table describes some of the most common special characters for use ... captures any email message that has a subject line...
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