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 & #124; Can eventually be displayed as & #124;
Use & Replace &
Input <code> can be displayed as <code> reference How to escape a pipe char in a code statement in a markdown table? HTML ASCII Reference