Markdown Syntax
- 1. INLINE HTML
- 2. AUTOMATIC ESCAPING FOR SPECIAL CHARACTERS
- 3. HEADERS
- 4. This is an H1
- 5. This is an H1
Examples to demostrate the markdown syntax.
INLINE HTML
This is a regular paragraph.
Foo |
This is another regular paragraph.
AUTOMATIC ESCAPING FOR SPECIAL CHARACTERS
http://images.google.com/images?num=30&q=larry+bird
©
AT&T
4 < 5
HEADERS
This is an H1
This is an H2
This is an H1
This is an H2
This is an H6
This is an H1
This is an H2
This is an H3
BLOCKQUOTES
Standard format:
This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
id sem consectetuer libero luctus adipiscing.
Lazy format:
This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
id sem consectetuer libero luctus adipiscing.
Nested format:
This is the first level of quoting.
This is nested blockquote.
Back to the first level.
Embedded format:
This is a header.
- This is the first list item.
- This is the second list item.
Here’s some example code:
return shell_exec("echo $input | $markdown_script");
LISTS
Asterisks list:
- Red
- Green
- Blue
Pluses list:
- Red
- Green
- Blue
Hyphens list:
- Red
- Green
- Blue
Ordered list:
- Bird
- McHale
- Parish
Lazy ordered list :
- Bird
- McHale
- Parish
Crazy lazy ordered list:
- Bird
- McHale
- Parish
Manual indent list:
- Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,
viverra nec, fringilla in, laoreet vitae, risus. - Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
Suspendisse id sem consectetuer libero luctus adipiscing.
Auto indent list:
- Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,
viverra nec, fringilla in, laoreet vitae, risus. - Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
Suspendisse id sem consectetuer libero luctus adipiscing.
Without blank line:
- Bird
- Magic
With blank line:
Bird
Magic
Multiple paragraphs:
This is a list item with two paragraphs. Lorem ipsum dolor
sit amet, consectetuer adipiscing elit. Aliquam hendrerit
mi posuere lectus.Vestibulum enim wisi, viverra nec, fringilla in, laoreet
vitae, risus. Donec sit amet nisl. Aliquam semper ipsum
sit amet velit.Suspendisse id sem consectetuer libero luctus adipiscing.
Lazy multiple paragraphs:
This is a list item with two paragraphs.
This is the second paragraph in the list item. You’re
only required to indent the first line. Lorem ipsum dolor
sit amet, consectetuer adipiscing elit.Another item in the same list.
Blockquote within a list item:
A list item with a blockquote:
This is a blockquote
inside a list item.
Code block within a list item:
A list item with a code block:
<code goes here>
Unexpected list:
- What a great season.
Backslash-escape the period:
1986. What a great season.
CODE BLOCKS
This is a normal paragraph:
This is a code block.
Here is an example of AppleScript:
tell application "Foo"
beep
end tell
HTML code example:
<div class="footer">
© 2004 Foo Corporation
</div>
HORIZONTAL RULES
Horizontal rule tag:
LINKS
URL:
This is an example inline link.
This link has no title attribute.
Local resource:
See my About page for details.
Reference-style links:
This is an example reference-style link.
This is an example reference-style link.
Implicit link:
Visit Daring Fireball for more information.
More example:
I get 10 times more traffic from Google than from
Yahoo or MSN.
I get 10 times more traffic from Google than from
Yahoo or MSN.
EMPHASIS
Emphasis:
single asterisks
single underscores
double asterisks
double underscores
In the middle of a word:
unfriggingbelievable
Backslash escape emphasis:
*this text is surrounded by literal asterisks*
CODE
Span of code:
Use the printf()
function.
Include backtick character:
There is a literal backtick (`) here.
A single backtick in a code span: `
A backtick-delimited string in a code span: `foo`
Include example HTML tags:
Please don’t use any <blink>
tags.
—
is the decimal-encoded equivalent of —
.
IMAGES
AUTOMATIC LINKS
BACKSLASH ESCAPES
\literal backslash\
`literal backtick`
*literal asterisk*
_literal underscore_
{literal curly braces}
[literal square brackets]
(literal parentheses)
#literal hash mark#
+literal plus sign+
-literal minus sign (hyphen)-
.literal dot.
!literal exclamation mark!