Markdown How to enter a vertical bar when editing a table (' | ', pipe,vertical bar)

Source: Internet
Author: User
markdown How to enter a vertical bar when editing a table

How to input ' | ' (pipe,vertical bar) in the table in Markdown editor?

main ideas : Vertical line with & #124; or & #x7C; to replace

Scenario 1: Vertical bar used directly in the table, directly with & #124;
For example
Original markdown Table format:
| A | R |
| - - - - - | - - - - - |
| ' A + = x; ' | R1 |
| A & #124; = y; | R2 |

Display effect:

a R
A + = x; R1
a |= y; R2

Scenario 2: A vertical bar is used in the code effect in a table, which is used in two anti-quotes
In this case, do not use anti-quotes, directly with <code> </code> to replace.
For example
Original markdown Table format:
| A | R |
| - - - - - | - - - - - |
| ' A + = x; ' | R1 |
| <code>a & #124; = y;</code> | R2 |

Display effect:

a R
A + = x; R1
a |= y; R2

PS: When editing HTML, input &amp; #124; Can eventually be displayed as & #124;
Use &amp; Replace &
Input &lt;code&gt; can be displayed as <code> reference How to escape a pipe char in a code statement in a markdown table? HTML ASCII Reference

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.