typora-issues icon indicating copy to clipboard operation
typora-issues copied to clipboard

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

Open fuweichin opened this issue 3 years ago • 1 comments

  • [ ] Searched existing issues to avoid creating duplicates.

  • [ ] Confirmed that it can be reproduced in built-in themes without customized css.

    If it only exists in 3rd party themes or css, you can still report it, but please attach the theme target or the css file. We may not "fix" it, if it is caused by 3rd party themes or css styles that we cannot support.

  • [ ] Searched http://support.typora.io/


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 [email protected] the sample md file that may reproduce this.

Desktop (please complete the following information):

  • OS: Windows 10.0.19044 64bit

Typora Version e.g: 1.3.6

Additional context Add any other context about the problem here.

fuweichin avatar Jul 07 '22 03:07 fuweichin

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.

abnerlee avatar Jul 12 '22 08:07 abnerlee