Markdown Cheat Sheet

For my both blogs I am using markdown for writing the blog posts, so I thought it’s better to keep a personal markdown cheat sheet for myself. So I don’t want to Google it every time whenever I need to check some syntax. So here it is.

What is Markdown?

Its a lightweight markup language that you can use to add formatting elements to plaintext text documents, which is created by John Gruber in collaboration with Aaron Swartz.

Basic Syntax

  • Heading

    # h1
    ## h2
    ### h3
    #### h4
    ##### h5 ###### h6

  • Bold

    **bold text**

  • Italic

    *Italic*

  • Blockquote without attribution

    > Blockquote

  • Blockquote with attribution

    > Blockquote
    >
    > — <cite>Unknown </cite>

  • Ordered List

    1. First item
    2. Second item
    3. Third item
  • Ordered List

    - First item
    - Second item
    - Third item

  • Inline Code

    `Code`

  • Block Code

    ``` Code ```

  • [title](https://www.codbix.com)

  • Image

    ![alt text](wizbitales.jpg)

  • Horizontal Rule

    ---

  • Strikethrough

    ~~This is a Strikethrough line.~~

  • Foot notes

    In a paragraph you can use the square bracket with a caret symbol along with a number to indicate a foot note: [^1].

    [^1]: In the below section you can add this for showing the footnotes.

Backslash Escapes

Markdown will allow to use backlash escapes to generate litertal characters which is used in the markdown itself fot formatting the syntax.

String: \* Literal astrisks\*
Output: * Literal astrisks*

References

CommonMark
GitHub Flavoured Markdown
Markdown guide

Read More