Search code examples
githubgithub-pagesgithub-flavored-markdown

how to show "|" in table of .md file in github?


I had test "&#124" to express "|" in my github page's .md file 's table. but failed.

It just show "&#124" but no symbol '|",

Could any one help?

I want to show "|" in the table of .md file on github page. Much Thanks


Solution

  • You need to follow &#124 with a semicolon. Here's the example below:

    FirstName | LastName | Phone | Email
    --- | --- | ---
    John | Doe | 99658545 | [email protected]
    

    I have tested on GitHub and it works. I would like to share my experience that initially it did not work because i entered it after a list item. Then I added a blank line by hitting enter just before that table. It worked ! Hope it helps !