Skip to content

Instantly share code, notes, and snippets.

@valyakuttan
Created July 26, 2023 17:24
Show Gist options
  • Save valyakuttan/e4e43a9047e5639fe1fb0eeb27ff4dbc to your computer and use it in GitHub Desktop.
Save valyakuttan/e4e43a9047e5639fe1fb0eeb27ff4dbc to your computer and use it in GitHub Desktop.
Markdown Cheatsheet

1. Code and Preformatted Text

  • 1.1 Indent four spaces to create an escaped <pre> <code> block:

    printf("%d\n", 42);  /* what was the
     question again? */
    
  • 1.2 Markdown and HTML are ignored within a code block
    You would hate this if it weren't wrapped in a code block.

2. Code Spans

Use backticks to create an inline <code> span

The $ character is just a shortcut for window.jQuery.

If your code itself contains backticks, you may have to use multiple backticks as delimiters

3. Linebreaks

End a line with two spaces to add a <br/> linebreak:

How do I love thee?
Let me count the ways

4. Italics and Bold

This is italicized, and so is this.
This is bold, and so is this.
Use italics and bold together if you have to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment