Skip to content

Instantly share code, notes, and snippets.

@chenzixin
Last active December 28, 2015 20:39

Revisions

  1. chenzixin revised this gist Nov 20, 2013. 1 changed file with 9 additions and 10 deletions.
    19 changes: 9 additions & 10 deletions md-cheat-sheet.md
    Original file line number Diff line number Diff line change
    @@ -1,14 +1,5 @@
    ## Markdown Cheat Sheet

    # Header 1 #
    ## Header 2 ##
    ### Header 3 ###
    #### Header 4 ####
    ##### Header 5 #####

    * Hashes on right are optional


    This is a paragraph, which is text surrounded by whitespace. Paragraphs can be on one
    line (or many), and can drone on for hours.

    @@ -74,4 +65,12 @@ block.
    | Cell | Cell | $20 |

    * Outer pipes on tables are optional
    * Colon used for alignment (right versus left)
    * Colon used for alignment (right versus left)

    # Header 1 #
    ## Header 2 ##
    ### Header 3 ###
    #### Header 4 ####
    ##### Header 5 #####

    * Hashes on right are optional
  2. chenzixin revised this gist Nov 20, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion md-cheat-sheet.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    ### Markdown Cheat Sheet
    ## Markdown Cheat Sheet

    # Header 1 #
    ## Header 2 ##
  3. chenzixin revised this gist Nov 20, 2013. 1 changed file with 2 additions and 17 deletions.
    19 changes: 2 additions & 17 deletions md-cheat-sheet.md
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,7 @@
    #### Header 4 ####
    ##### Header 5 #####

    Hashes on right are optional
    * Hashes on right are optional


    This is a paragraph, which is text surrounded by whitespace. Paragraphs can be on one
    @@ -74,19 +74,4 @@ block.
    | Cell | Cell | $20 |

    * Outer pipes on tables are optional
    * Colon used for alignment (right versus left)

    ## Markdown plus definition lists ##

    Bottled water
    : $ 1.25
    : $ 1.55 (Large)

    Milk
    Pop
    : $ 1.75

    * Multiple definitions and terms are possible
    * Definitions can include multiple paragraphs too

    *[ABBR]: Markdown plus abbreviations (produces an <abbr> tag)
    * Colon used for alignment (right versus left)
  4. chenzixin revised this gist Nov 20, 2013. 1 changed file with 0 additions and 10 deletions.
    10 changes: 0 additions & 10 deletions md-cheat-sheet.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,5 @@
    ### Markdown Cheat Sheet

    {#id-goes-here}

    # Header 1 #
    ## Header 2 ##
    ### Header 3 ###
    @@ -11,14 +9,6 @@
    Hashes on right are optional



    ## Markdown plus h2 with a custom ID




    [Link back to H2](#id-goes-here)

    This is a paragraph, which is text surrounded by whitespace. Paragraphs can be on one
    line (or many), and can drone on for hours.

  5. chenzixin revised this gist Nov 20, 2013. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion md-cheat-sheet.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,7 @@
    ### Markdown Cheat Sheet

    {#id-goes-here}

    # Header 1 #
    ## Header 2 ##
    ### Header 3 ###
    @@ -10,7 +12,7 @@ Hashes on right are optional



    ## Markdown plus h2 with a custom ID {#id-goes-here}
    ## Markdown plus h2 with a custom ID



  6. chenzixin revised this gist Nov 20, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion md-cheat-sheet.md
    Original file line number Diff line number Diff line change
    @@ -10,7 +10,7 @@ Hashes on right are optional



    ## Markdown plus h2 with a custom ID ## {#id-goes-here}
    ## Markdown plus h2 with a custom ID {#id-goes-here}



  7. chenzixin revised this gist Nov 20, 2013. 1 changed file with 6 additions and 2 deletions.
    8 changes: 6 additions & 2 deletions md-cheat-sheet.md
    Original file line number Diff line number Diff line change
    @@ -8,9 +8,13 @@

    Hashes on right are optional

    {#id-goes-here}

    ## Markdown plus h2 with a custom ID ##

    ## Markdown plus h2 with a custom ID ## {#id-goes-here}




    [Link back to H2](#id-goes-here)

    This is a paragraph, which is text surrounded by whitespace. Paragraphs can be on one
  8. chenzixin revised this gist Nov 20, 2013. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion md-cheat-sheet.md
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,9 @@

    Hashes on right are optional

    ## Markdown plus h2 with a custom ID ## {#id-goes-here}
    {#id-goes-here}

    ## Markdown plus h2 with a custom ID ##
    [Link back to H2](#id-goes-here)

    This is a paragraph, which is text surrounded by whitespace. Paragraphs can be on one
  9. chenzixin revised this gist Nov 20, 2013. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion md-cheat-sheet.md
    Original file line number Diff line number Diff line change
    @@ -2,10 +2,12 @@

    # Header 1 #
    ## Header 2 ##
    ### Header 3 ### (Hashes on right are optional)
    ### Header 3 ###
    #### Header 4 ####
    ##### Header 5 #####

    Hashes on right are optional

    ## Markdown plus h2 with a custom ID ## {#id-goes-here}
    [Link back to H2](#id-goes-here)

  10. chenzixin revised this gist Nov 20, 2013. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions md-cheat-sheet.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    ### Markdown Cheat Sheet

    # Header 1 #
    ## Header 2 ##
    ### Header 3 ### (Hashes on right are optional)
  11. chenzixin renamed this gist Nov 20, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  12. chenzixin revised this gist Nov 20, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -18,7 +18,7 @@ feeling-lucky), a [wiki: test] link to a Wikipedia page, and a link to
    Now some inline markup like _italics_, **bold**, and `code()`. Note that underscores in
    words are ignored in Markdown Extra.

    ![picture alt](/images/photo.jpeg "Title is optional")
    ![picture alt](http://ww2.sinaimg.cn/mw690/436d0379jw1earhanm9vgj20960be3z7.jpg "Title is optional")

    > Blockquotes are like quoted text in email replies
    >> And, they can be nested
  13. @micmcg micmcg created this gist May 17, 2011.
    90 changes: 90 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,90 @@
    # Header 1 #
    ## Header 2 ##
    ### Header 3 ### (Hashes on right are optional)
    #### Header 4 ####
    ##### Header 5 #####

    ## Markdown plus h2 with a custom ID ## {#id-goes-here}
    [Link back to H2](#id-goes-here)

    This is a paragraph, which is text surrounded by whitespace. Paragraphs can be on one
    line (or many), and can drone on for hours.

    Here is a Markdown link to [Warped](http://warpedvisions.org), and a literal .
    Now some SimpleLinks, like one to [google] (automagically links to are-you-
    feeling-lucky), a [wiki: test] link to a Wikipedia page, and a link to
    [foldoc: CPU]s at foldoc.

    Now some inline markup like _italics_, **bold**, and `code()`. Note that underscores in
    words are ignored in Markdown Extra.

    ![picture alt](/images/photo.jpeg "Title is optional")

    > Blockquotes are like quoted text in email replies
    >> And, they can be nested
    * Bullet lists are easy too
    - Another one
    + Another one

    1. A numbered list
    2. Which is numbered
    3. With periods and a space

    And now some code:

    // Code is just text indented a bit
    which(is_easy) to_remember();

    ~~~
    // Markdown extra adds un-indented code blocks too
    if (this_is_more_code == true && !indented) {
    // tild wrapped code blocks, also not indented
    }
    ~~~

    Text with
    two trailing spaces
    (on the right)
    can be used
    for things like poems

    ### Horizontal rules

    * * * *
    ****
    --------------------------


    <div class="custom-class" markdown="1">
    This is a div wrapping some Markdown plus. Without the DIV attribute, it ignores the
    block.
    </div>

    ## Markdown plus tables ##

    | Header | Header | Right |
    | ------ | ------ | -----: |
    | Cell | Cell | $10 |
    | Cell | Cell | $20 |

    * Outer pipes on tables are optional
    * Colon used for alignment (right versus left)

    ## Markdown plus definition lists ##

    Bottled water
    : $ 1.25
    : $ 1.55 (Large)

    Milk
    Pop
    : $ 1.75

    * Multiple definitions and terms are possible
    * Definitions can include multiple paragraphs too

    *[ABBR]: Markdown plus abbreviations (produces an <abbr> tag)