Limited to pretty much what can be represented with basic Markdown. It borrows text and examples from http://daringfireball.net/projects/markdown/syntax.text.
Like this one.
And this one, which is longer. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Atx-style headers are used as the default. They use 1-6 hash characters at the start of the line, corresponding to header levels 1-6
Blockquotes use a >
before every line (not the "lazy" single >
):
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.
Blockquotes can contain other Markdown elements, including headers, lists, and code blocks:
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");
Unordered lists use hyphens:
Ordered lists use numbers followed by periods:
List items may consist of multiple paragraphs. Each subsequent
paragraph in a list item is indented by 4 spaces:
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.
Fenced code blocks are used:
Some code
The language can be specified:
Some R code
Three hyphens are used for a horizontal rule:
This is an example link and this one also has a title.
Autolinks are supported e.g. http://example.com
Emphasis (HTML5 em) uses single underscore: emphasized.
Importance (HTML5 strong) uses single asterisks: important.
Inline code uses backticks
.
Inline image syntax looks like this:
Optionally, you can include a title: