DEV Community

Cover image for Markdown Cheatsheet to bookmark
Jovan M.
Jovan M.

Posted on

Markdown Cheatsheet to bookmark

Markdown is a lightweight markup language for creating formatted text using a plain-text editor. John Gruber and Aaron Swartz created Markdown in 2004 as a markup language that is appealing to human readers in its source code form.
This article is made for a quick help for when you (and I) need to use markdown for a project.

Headers

Alt Text

Also H1 and H2 can be written like this
Alt Text

Text styles

Alt Text

Paragraphs

You can end a paragraph with two or more spaces and then begin a new paragraph. Like this:
Alt Text

Blockquotes

are done

Like this:


Alt Text

Lists

Unordered lists can be made in this ways
Alt Text

Ordered lists can be made in this way
Alt Text

You can also make sublists like this
Alt Text

You can make task lists with checkboxes like this
Alt Text

Code Blocks

To make a code block (which uses the element in HTML) by indenting a line with four spaces or a tab. You can also re-tab (or add an additional four spaces) for indentation inside your code. Like this:
Alt Text

Horizontal Rule

Horizontal rules (


) are easily added with three or more asterisks or hyphens, with or without spaces.
Alt Text

Links

Put the text to display in hard brackets [] followed by the url in parentheses (). You can also add a link title using quotes inside the parentheses. Relative paths work too.
Alt Text

Markdown also supports reference style links.
Alt Text

Images

Images are done the same way as links but with an exclamation point in front!
Alt Text

Tables

To make tables using markdown you can do it pretty easily. And has 2 different ways.
Alt Text

Footnote

Here is how to make footnotes.
Alt Text

Miscellany

Here's some stuff I don't use very often but some people may need it.

Auto links for emails

Alt Text

Escaping characters

Alt Text

Keyboard keys

Alt Text

That's it , I know there are more things but honestly I haven't used anything more than this. If you have anything you want me to add please comment and I will edit this.

Hope this helps,
Stay safe,
~Jovan

Top comments (0)