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










0















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 '18 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.



















    0















    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 '18 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.

















      0












      0








      0








      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 '18 at 20:48









      oaxacamatt

      4091721




      4091721




      marked as duplicate by Chris, Community Nov 19 '18 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 '18 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


















          1














          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 '18 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 '18 at 1:40

















          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          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 '18 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 '18 at 1:40















          1














          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 '18 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 '18 at 1:40













          1












          1








          1






          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 '18 at 21:27









          scinart

          36516




          36516











          • Thanks, I tried that and for some reason it does not work on Atom editor.
            – oaxacamatt
            Nov 11 '18 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 '18 at 1:40
















          • Thanks, I tried that and for some reason it does not work on Atom editor.
            – oaxacamatt
            Nov 11 '18 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 '18 at 1:40















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





          Thanks, I tried that and for some reason it does not work on Atom editor.
          – oaxacamatt
          Nov 11 '18 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 '18 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 '18 at 1:40



          Popular posts from this blog

          Use pre created SQLite database for Android project in kotlin

          Darth Vader #20

          Ondo