💻
Cheatsheets
  • Most Useful Command Line Tools: 50 Cool Tools to Improve Your Workflow, Boost Productivity, and More
  • 7_tips_to_reverse_engineer_javascript
  • Configuring a Repl
  • How to create your command-line program (CLI) with NodeJS and Commander.js | by Duc N. | JavaScript
  • replit Node.JS 24/7 Project Hoster
  • cheatsheets
  • Alacritty, Tmux, and Vim
  • amethyst
  • Android
  • Installing Arch Linux
  • Arch Linux
  • aria2
  • bin
  • bspwm
  • Chocolately Notes
  • command_line_pipes
  • CSS Grid
  • curl
  • The curl guide to HTTP requests
  • Docker
  • Easymotion
  • Emmet
  • Favorite figlet fonts
  • FFMPEG
  • figlet
  • File Serve
  • File Transfer
  • fish shell
  • Front End Dev Links
  • How to use Git.io to shorten GitHub URLs and create vanity URLs
  • Git
  • Downloading a Tarball from GitHub
  • Make Infinite Gmail Addresses For One Inbox
  • How To Use GPG on the Command Line
  • guide_to_fish_completions
  • Homebrew
  • How to clean Arch Linux
  • HTML5 Boilerplate
  • Install
  • All the keyboard shortcuts you’ll ever need for Safari on iPad
  • iosevka
  • iPhone
  • ish (iOS)
  • Javascript Notes
  • jq
  • Jupyter Notebooks
  • Lettering
  • lf-wiki
  • lf
  • Command Line
  • Adding a swapfile after a clean installation without swap partition
  • mac_bluetooth_issues
  • Mac Terminal
  • maim
  • markdown-sample
  • Markdown Notes
  • Images in README.md Markdown Files
  • Organizing information with tables
  • md_cheatsheet
  • NiftyWindows Help
  • nix
  • Justin Restivo - A Portable Text Editor: Nix <3 Neovim
  • NPM
  • neovim configuration
  • Pastery
  • Powershell
  • Table of Basic PowerShell Commands | Scripting Blog
  • Powershell Modules
  • Puppeteer
  • Python
  • rclone-colab
  • replit
  • Hi there, I'm Raju Ghorai - a.k.a. [coderj001]
  • Scriptable
  • Servor
  • Replacing Postlight’s Mercury scraping service with your self-hosted copy
  • Shell Scripts
  • skhd
  • Spicetify
  • SSH
  • SurfingKeys
  • tar
  • Terminal Web Browser Docker
  • Text Generators
  • tmux shortcuts & cheatsheet
  • unicode
  • VIM
  • VIM Diff
  • vi Complete Key Binding List
  • 8 Essential Vim Editor Navigation Fundamentals
  • Vim Shortcut Keys
  • Vite
  • VNC
  • web-servers
  • Web Server
  • Windows Command Line
  • Writeguard
  • WSL Cheatsheet
  • youtube-dl
  • zsh Plugins
  • zspotify
Powered by GitBook
On this page
  • Sample Markdown Cheat Sheet
  • Text basics
  • Indentation
  • Titles
  • Big title (h1)
  • Middle title (h2)
  • Example lists (1)
  • Links
  • Images
  • Code
  • Math
  • GitHub Flavored Markdown
  • Parsers and Extensions
  • Examples
  • About

Was this helpful?

md_cheatsheet

PreviousOrganizing information with tablesNextNiftyWindows Help

Last updated 3 years ago

Was this helpful?

Sample Markdown Cheat Sheet

This is a sample markdown file to help you write Markdown quickly :)

If you use the fabulous along with the , open your ST2 Palette with CMD+⇧+P then choose Markdown Preview in browser to see the result in your browser.

Text basics

this is italic and this is bold . another italic and another bold

this is important text. and percentage signs : % and %

This is a paragraph with a footnote (builtin parser only). [^note-id]

Insert [ TOC ] without spaces to generate a table of contents (builtin parsers only).

Indentation

Here is some indented text

even more indented

Titles

Big title (h1)

Middle title (h2)

Smaller title (h3)

and so on (hX)

and so on (hX)

and so on (hX)

Example lists (1)

  • bullets can be -, +, or *

  • bullet list 1

  • bullet list 2

    • sub item 1

    • sub item 2

      with indented text inside

  • bullet list 3

  • bullet list 4

  • bullet list 5

Links

References are usually placed at the bottom of the document

Images

A sample image :

As links, images can also use references instead of inline links :

Code

It's quite easy to show code in markdown files.

Backticks can be used to highlight some words.

Also, any indented block is considered a code block. If enable_highlight is true, syntax highlighting will be included (for the builtin parser - the github parser does this automatically).

<script>
    document.location = 'http://lmgtfy.com/?q=markdown+cheat+sheet';
</script>

Math

Math can be displayed in the browser using MathJax or Katex. The feature can be enabled by correctly configuring the "js", "css", and "markdown_extensions" configuration fields. This allows for inline math to be included \(\frac{\pi}{2}\) $\pi$.

Alternatively, math can be written on its own line:

\[\int_0^1 f(t) \mathrm{d}t\]

\[\sum_j \gamma_j^2/d_j\]

GitHub Flavored Markdown

  • User/Project@SHA: revolunet/sublimetext-markdown-preview@7da61badeda468b5019869d11000307e07e07401

  • User/Project#Issue: revolunet/sublimetext-markdown-preview#1

  • User : @revolunet

Some Python code :

import random

class CardGame(object):
    """ a sample python class """
    NB_CARDS = 32
    def __init__(self, cards=5):
        self.cards = random.sample(range(self.NB_CARDS), 5)
        print 'ready to play'

Some Javascript code :

var config = {
    duration: 5,
    comment: 'WTF'
}
// callbacks beauty un action
async_call('/path/to/api', function(json) {
    another_call(json, function(result2) {
        another_another_call(result2, function(result3) {
            another_another_another_call(result3, function(result4) {
                alert('And if all went well, i got my result :)');
            });
        });
    });
})

Parsers and Extensions

Markdown Preview comes with Python-Markdown preloaded.

Python-Markdown

Extra Extensions

You can enable them all at once using the extra keyword.

extensions: [ 'extra' ]

If you want all the extras plus the toc extension, your settings would look like this:

{
    ...
    parser: 'markdown',
    extensions: ['extra', 'toc'],
    ...
}

Other Extensions

There are also some extensions that are not included in Markdown Extra but come in the standard Python-Markdown library.

3rd Party Extensions

Python-Markdown is designed to be extended.

Some included ones are:

  • delete -- github style delte support via ~~word~~

  • githubemoji -- github emoji support

  • tasklist -- github style tasklists

  • magiclink -- github style auto link conversion of http|ftp links

  • headeranchor -- github style header anchor links

  • github -- Adds the above extensions in one shot

  • b64 -- convert and embed local images to base64. Setup by adding this b64(base_path=${BASE_PATH})

There are also a number of others available:

Just fork this repo and add your extensions inside the .../Packages/Markdown Preview/markdown/extensions/ folder.

Default Extensions

The default extensions are:

Use the default keyword, to select them all. If you want all the defaults plus the definition_lists extension, your settings would look like this:

{
    ...
    parser: 'markdown',
    extensions: ['default', 'definition_lists'],
    ...
}

Examples

Tables

The tables extension of the Python-Markdown parser is activated by default, but is currently not available in Markdown2.

Year
Temperature (low)
Temperature (high)

1900

-10

25

1910

-15

30

1920

-10

32

Wiki Tables

If you are using Markdown2 with the wiki-tables extra activated you should see a table below:

|| Year || Temperature (low) || Temperature (high) || || 1900 || -10 || 25 || || 1910 || -15 || 30 || || 1920 || -10 || 32 ||

Definition Lists

This example requires Python Markdown's def_list extension.

Apple : Pomaceous fruit of plants of the genus Malus in the family Rosaceae.

Orange : The fruit of an evergreen tree of the genus Citrus.

About

This is an and .

Links can also be reference based : or .

revolunet logo
revolunet logo

F(ω)=12π∫−∞∞f(t) e−iωtdtF(\omega) = \frac{1}{\sqrt{2\pi}} \int_{-\infty}^{\infty} f(t) \, e^{ - i \omega t}dtF(ω)=2π​1​∫−∞∞​f(t)e−iωtdt

If you use the Github parser, you can use some of syntax :

The Github Markdown also brings some :

The provides support for several extensions.

abbr --

attr_list --

def_list --

fenced_code --

footnotes --

tables --

smart_strong --

code-hilite --

header-id --

meta_data --

nl2br --

sane_lists --

smarty --

toc --

wikilinks --

Check out the list of .

footnotes --

toc --

fenced_code --

tables --

The syntax was adopted from the , and is also used in github flavoured markdown.

This plugin and this sample file is proudly brought to you by the

Sublime Text 2/3 editor
Markdown Preview plugin
example inline link
another one with a title
reference 1
reference 2 with title
Github Flavored Markdown
👍
❤️
🍺
nice Emoji support
Python-Markdown Parser
Abbreviations
Attribute Lists
Definition Lists
Fenced Code Blocks
Footnotes
Tables
Smart Strong
CodeHilite
HeaderId
Meta-Data
New Line to Break
Sane Lists
Smarty
Table of Contents
WikiLinks
3rd Party extensions
Footnotes
Table of Contents
Fenced Code Blocks
Tables
php markdown project
revolunet team