Using Github Markdown: How to get literal Pipe into a table [duplicate]









up vote
0
down vote

favorite













This question already has an answer here:



  • How to escape a pipe char in a code statement in a markdown table?

    3 answers



I am producing a cheat sheet using Unix commands and markdown. When I use a pipe in a Unix command I get an extra column. I can't seem to find the character to give a literal |. The pipe between ls and wc gives 4 columns.



Example:



| # | Command | Description |
|:--|:--------|:------------|
| 1. | ls | wc –l | count number of files in a directory. |


Tried: backslash, forward slash, single backtick, triple backtick, surround it with 2 spaces, **,<code> </code>,










share|improve this question













marked as duplicate by Chris, Community Nov 19 at 16:08


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


















    up vote
    0
    down vote

    favorite













    This question already has an answer here:



    • How to escape a pipe char in a code statement in a markdown table?

      3 answers



    I am producing a cheat sheet using Unix commands and markdown. When I use a pipe in a Unix command I get an extra column. I can't seem to find the character to give a literal |. The pipe between ls and wc gives 4 columns.



    Example:



    | # | Command | Description |
    |:--|:--------|:------------|
    | 1. | ls | wc –l | count number of files in a directory. |


    Tried: backslash, forward slash, single backtick, triple backtick, surround it with 2 spaces, **,<code> </code>,










    share|improve this question













    marked as duplicate by Chris, Community Nov 19 at 16:08


    This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite












      This question already has an answer here:



      • How to escape a pipe char in a code statement in a markdown table?

        3 answers



      I am producing a cheat sheet using Unix commands and markdown. When I use a pipe in a Unix command I get an extra column. I can't seem to find the character to give a literal |. The pipe between ls and wc gives 4 columns.



      Example:



      | # | Command | Description |
      |:--|:--------|:------------|
      | 1. | ls | wc –l | count number of files in a directory. |


      Tried: backslash, forward slash, single backtick, triple backtick, surround it with 2 spaces, **,<code> </code>,










      share|improve this question














      This question already has an answer here:



      • How to escape a pipe char in a code statement in a markdown table?

        3 answers



      I am producing a cheat sheet using Unix commands and markdown. When I use a pipe in a Unix command I get an extra column. I can't seem to find the character to give a literal |. The pipe between ls and wc gives 4 columns.



      Example:



      | # | Command | Description |
      |:--|:--------|:------------|
      | 1. | ls | wc –l | count number of files in a directory. |


      Tried: backslash, forward slash, single backtick, triple backtick, surround it with 2 spaces, **,<code> </code>,





      This question already has an answer here:



      • How to escape a pipe char in a code statement in a markdown table?

        3 answers







      github-flavored-markdown






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 11 at 20:48









      oaxacamatt

      4091721




      4091721




      marked as duplicate by Chris, Community Nov 19 at 16:08


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






      marked as duplicate by Chris, Community Nov 19 at 16:08


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          adding backslash works:



          | # | Command | Description |
          |:--|:--------|:------------|
          | 1. | ls | wc –l | count number of files in a directory. |





          share|improve this answer




















          • Thanks, I tried that and for some reason it does not work on Atom editor.
            – oaxacamatt
            Nov 11 at 23:58











          • It works on github, see github.github.com/gfm/#backslash-escapes. I believe it is Atom's fault not to show it properly.
            – scinart
            Nov 12 at 1:40

















          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote



          accepted










          adding backslash works:



          | # | Command | Description |
          |:--|:--------|:------------|
          | 1. | ls | wc –l | count number of files in a directory. |





          share|improve this answer




















          • Thanks, I tried that and for some reason it does not work on Atom editor.
            – oaxacamatt
            Nov 11 at 23:58











          • It works on github, see github.github.com/gfm/#backslash-escapes. I believe it is Atom's fault not to show it properly.
            – scinart
            Nov 12 at 1:40














          up vote
          1
          down vote



          accepted










          adding backslash works:



          | # | Command | Description |
          |:--|:--------|:------------|
          | 1. | ls | wc –l | count number of files in a directory. |





          share|improve this answer




















          • Thanks, I tried that and for some reason it does not work on Atom editor.
            – oaxacamatt
            Nov 11 at 23:58











          • It works on github, see github.github.com/gfm/#backslash-escapes. I believe it is Atom's fault not to show it properly.
            – scinart
            Nov 12 at 1:40












          up vote
          1
          down vote



          accepted







          up vote
          1
          down vote



          accepted






          adding backslash works:



          | # | Command | Description |
          |:--|:--------|:------------|
          | 1. | ls | wc –l | count number of files in a directory. |





          share|improve this answer












          adding backslash works:



          | # | Command | Description |
          |:--|:--------|:------------|
          | 1. | ls | wc –l | count number of files in a directory. |






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 11 at 21:27









          scinart

          36516




          36516











          • Thanks, I tried that and for some reason it does not work on Atom editor.
            – oaxacamatt
            Nov 11 at 23:58











          • It works on github, see github.github.com/gfm/#backslash-escapes. I believe it is Atom's fault not to show it properly.
            – scinart
            Nov 12 at 1:40
















          • Thanks, I tried that and for some reason it does not work on Atom editor.
            – oaxacamatt
            Nov 11 at 23:58











          • It works on github, see github.github.com/gfm/#backslash-escapes. I believe it is Atom's fault not to show it properly.
            – scinart
            Nov 12 at 1:40















          Thanks, I tried that and for some reason it does not work on Atom editor.
          – oaxacamatt
          Nov 11 at 23:58





          Thanks, I tried that and for some reason it does not work on Atom editor.
          – oaxacamatt
          Nov 11 at 23:58













          It works on github, see github.github.com/gfm/#backslash-escapes. I believe it is Atom's fault not to show it properly.
          – scinart
          Nov 12 at 1:40




          It works on github, see github.github.com/gfm/#backslash-escapes. I believe it is Atom's fault not to show it properly.
          – scinart
          Nov 12 at 1:40



          這個網誌中的熱門文章

          How to read a connectionString WITH PROVIDER in .NET Core?

          Node.js Script on GitHub Pages or Amazon S3

          Museum of Modern and Contemporary Art of Trento and Rovereto