Here's a list of current syntax options. Notations are provided for PHP Extras syntax, Maruku syntax, GFM, and NAMP dialects. For most of these, you'll want to also check out the HTML source to see what's going on.
italic bold
italic bold
Inline: An example
Reference-style labels (titles are optional):
An example. Then, anywhere
else in the doc, define the link:
Inline (titles are optional):
Reference-style:
atx-style (closing #'s are optional):
Ordered, without paragraphs:
Ordered, with paragraphs:
Eggs
Preferrably brown
Milk
Wait, I am lactose intolerant
Unordered, with paragraphs:
A list item.
With multiple paragraphs.
Bar
You can nest them:
Email-style angle brackets are used for blockquotes.
And, they can be nested.
Headers in blockquotes
- You can quote a list.
- Like this.
- And nest one.
<code>
spans are delimited
by backticks.
You can include literal backticks
like `this`
.
Indent every line of a code block by at least 4 spaces or 1 tab.
This is a normal paragraph.
This is a preformatted
code block.
Code blocks can also be "fenced" by ```
(GitHub-Flavored-Markdown)
console.log("flock yeah!");
For extra awesome, add the name of a programming language to the first fence, in order to syntax highlight it.
var x = function () {
console.log("This actually has 'perl' as a tag!")
};
(Highlighting is enabled by default; you'll have to define your own CSS that matches the highlight-js notation, though, which this document does not do!)
Hey, this is terrible great!
Three or more dashes or asterisks:
End a line with two or more spaces:
Roses are red,
Violets are blue.
"check it out" "
\"
"should not curl"
"Wow"
|a |b |c |:---|---|--- |1 |2 |3
|a |b |c |:--|:--:|:-- |1 |2 (or two) |[3]{: .threeClass} |4 |5 | 6 {: #demo test="true"}
x |y |z --|--|-- 8 |9 |10 {: .table .table-striped .table-bordered .table-condensed}
Demonstrating alignment:
:|:-----|:------: 0001 | 2 (or two) | 003 4 | 0005 | 6
Apple : Pomaceous fruit of plants of the genus Malus in the family Rosaceae.
Orange : The fruit of an evergreen tree of the genus Citrus.
print "Testing yet again"
It's extremly hard to come up with make believe text.
Pomegranate : A deciduous shrub or small tree (Punica granatum), native to Asia and widely cultivated for its edible fruit. Anyway, Blah blah blah.adsadsasd.
Term 1 : This is a definition with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. : Second definition for term 1, also wrapped in a paragraph
because of the blank line preceding it. {: .test}
{: #TestingIDHere}
{: #myid .myclass}
Look around{: .class1} you! View [the source code!]{: .someclass .someclass2 vague="no"} This whole area is covered in attributes! {: #bigBlock tutorial=yes}
Spans should be covered in [ ]
, with the attribute list defined afterwards.
& < "aaa" &
<div class='alert alert-success'>
.
<div class='alert alert-info'>
<div class='alert alert-block'>
These classes have to do with Twitter Bootstrap stylings for Note:
, Tip:
, and Warning:
.
HTML should be represented as is.
The quick brown fox jumps over the lazy dog.
To have fun, press: ˄-⌥-Down. Or, you know, don't.
⌘-X
Your Name, Setup, Develop, Stuff
Click
. For Visualforce components, click .