typora / typora-issues

Bugs, suggestions or free discussions about the minimal markdown editor — Typora
https://typora.io
1.53k stars 58 forks source link

Rendering of vertical bar in code span in table cell is not compatible with GFM. #5328

Open fuweichin opened 2 years ago

fuweichin commented 2 years ago

Describe the bug Rendering of vertical bar (|) in code span in table cell is not compatible with GFM, vertical bar escaping (with backslash) is required for GitHub markdown preview but is an eyesore for Typora WYSIWYG view.

To Reproduce Steps to reproduce the behavior:

  1. Put inline code echo Hello|ubuntu run md5sum - (including the grave accent pair) in a table cell

Expected behavior Typora should keep the same parsing/rendering behavior with GitHub markdown parser/renderer for such inline code.

Screenshots / Screencasts If applicable, add screenshots / screencasts to help explain your problem.

Rendering in Typora

rendering-in-Typora

Rendering in github.com

rendering-in-GitHub

Sample Markdown File Please attach or send us hi@typora.io the sample md file that may reproduce this.

Desktop (please complete the following information):

Typora Version e.g: 1.3.6

Additional context Add any other context about the problem here.

abnerlee commented 2 years ago

If we follow github about this, then user cannot input echo Hello|ubuntu run md5sum - in a table cell. So we may just keep it as-is.