Last active
March 31, 2022 23:16
-
-
Save palimadra/87e7c294be6447bac96b to your computer and use it in GitHub Desktop.
Cheat Sheet for Markdown on stackedit.io
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--- | |
Author: Pali Madra | |
URL: http://palimadra.tumblr.com | |
Description: Cheat sheet for markdown on stackedit.io at http://www.stackedit.io | |
Version: 1.0 | |
Last updated: 10/26/2014 | |
---> | |
<!--- HEADING ---> | |
# 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) | |
<!--- CONTENT --> | |
This is a paragraph, which is text surrounded by whitespace. Paragraphs can be on one | |
line (or many), and can drone on for hours. | |
<!--- CONTENT FORMATTING ---> | |
Now some inline markup like _italics_, **bold**, and `code()`. Note that underscores in | |
words are ignored in Markdown Extra. | |
<!--- LINKS ---> | |
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. | |
<!--- IMAGES ---> | |
![picture alt](/images/photo.jpeg "Title is optional") | |
<!--- BLOCKQUOTES --> | |
> Blockquotes are like quoted text in email replies | |
>> And, they can be nested | |
<!--- LISTS ---> | |
* Bullet lists are easy too | |
- Another one | |
+ Another one | |
1. A numbered list | |
2. Which is numbered | |
3. With periods and a space | |
<!--- CODE FORMAT ---> | |
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> | |
<!--- TABLES ---> | |
## 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) | |
<!--- DEFINATION LISTS ---> | |
## 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 | |
<!--- ABREVIATIONS ---> | |
*[ABBR]: Markdown plus abbreviations (produces an <abbr> tag) |
You can make nested lists by writing a space before the * .
E.g.:
* Level 1
* Level 2
becomes
- Level 1
- Level 2
How different is this from Github-flavored markdown?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey guys, is there no nested lists?