Skip to content

Instantly share code, notes, and snippets.

@opera443399
Created July 14, 2016 09:40
Show Gist options
  • Save opera443399/5c9aa1d1d8b34efc8515f5582132f16e to your computer and use it in GitHub Desktop.
Save opera443399/5c9aa1d1d8b34efc8515f5582132f16e to your computer and use it in GitHub Desktop.
HEADERS
This is an H1
=============
This is an H2
-------------
# This is an H1
## This is an H2
###### This is an H6
[title:title-name]Article Title[/title]
> This is the first level of quoting.
>
> > This is nested blockquote.
>
> Back to the first level.
BLOCKQUOTES
Blockquotes can contain other Markdown
elements, including headers, lists, and code
blocks:
> ## This is a header.
>
> 1. This is the first list item.
> 2. This is the second list item.
>
> Here's some example code:
>
> return shell_exec("echo $input |
$markdown_script");
LIST
* Red
* Green
* Blue
Ordered lists use numbers followed by periods:
1. Bird
2. McHale
3. Parish
CODE
One level of indentation — 4 spaces or 1 tab —
is removed from each line of the code block.
For example, this:
Here is an example of AppleScript:
tell application "Foo"
beep
end tell
LINKS
This is
[an example](http://example.com/ "Title")
inline link.
[This link](http://example.net/) has no title
attribute.
[[help/tasks Help about Tasks Section]] wiki
link
EMPHASIS
*single asterisks*
_single underscores_
**double asterisks**
__double underscores__
IMAGES
[img:image-slug] simple inline image
[fimg:image-slug] image floated left
[pimg:preview-image-slug:image-slug] simple
inline image with preview
[fpimg:preview-image-slug:image-slug] floated
image with preview
HORIZONTAL RULES
You can produce a horizontal rule by placing
three or more hyphens, asterisks, or
underscores on a line by themselves. If you
wish, you may use spaces between the hyphens
or asterisks. Each of the following lines will
produce a horizontal rule:
* * *
***
*****
- - -
SPOILER TAG
[spoiler] Place text to be hidden here
[/spoiler]
Use this tag to hide the information you do not
want to show at the first time. If only other
user click on this tag, he or she will see the
information.
---------------------------------------
BACKSLASH ESCAPES
Markdown allows you to use backslash escapes to
generate literal characters which would
otherwise have special meaning in Markdown’s
formatting syntax. For example, if you wanted
to surround a word with literal asterisks
(instead of an HTML <em> tag), you can use
backslashes before the asterisks, like this:
\*literal asterisks\*
Markdown provides backslash escapes for the
following characters:
\ backslash
* asterisk
_ underscore
{} curly braces
[] square brackets
() parentheses
# hash mark
+ plus sign
- minus sign (hyphen)
. dot
! exclamation mark
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment