[%# this source code form is subject to the terms of the mozilla public # license, v. 2.0. if a copy of the mpl was not distributed with this # file, you can obtain one at http://mozilla.org/mpl/2.0/. # # this source code form is "incompatible with secondary licenses", as # defined by the mozilla public license, v. 2.0. #%] [% INCLUDE global/header.html.tmpl title = "Markdown Syntax Guide" bodyclasses = ['narrow_page'] %]
This is an H1 header
====================
This is an H2 header
--------------------
Second, you can use hash signs at the beginning of the line to specify the
level of the header from 1 to 6.
# This is the largest header (H1 level)
### This is a small header (H3 level)
###### This is the smallest header (H6 level)
>
) at the beginning of the line
to indicate a line as quoted.
> Some text to be quoted.
_This text will become italic_
*This text also will become italic*
__But this one will be bold__
**And this one as well**
Turns into
This text will become italic This text also will become italicUse different signs to combine them nestedly in order to avoid ambiguity:
But this one will be bold And this one as well
_This [% terms.bug %] **must** be resolved ASAP._
Note: [% terms.Bugzilla %] will skip emphasizing words that
have the form of multiple_underscore_in_a_word
. This measure is
taken to not emphasize words that are possible programming variables. If your
word has this form and you still want it to become emphasized/bold, you must
use single/double asterisks (*
) instead of underscores
(_
).
*
), pluses (+
) or hyphens
(-
) to mark the items of an unordered list.
+ First item
+ Second item
+ Third item
1. Item one
4. Item two
3. Item three
Note: Your numbers have no effect on the rendered item
numbers and the rendered numbers are automatically generated. Your numbers
are only used to specify the items of an ordered list.A list item can have nested lists recursively:
1. Item one
4. Item two
3. Item three
* First sub-item
* Second sub-item
5. Item four
`
) and close that
part with the same number of backticks.
Please see the manual for `printf` function.
If you want to make some lines of code, you need to use 3 or more backticks at
the beginning of a line followed by your code lines and concluded by 3 or more
backticks.
See my function:
```
int sum(int x, int y) {
return x + y;
}
```
You can also use a tab or [% constants.MARKDOWN_TAB_WIDTH FILTER html %] or
more spaces at the beginning of each line of your code to make the whole block
look as a code block. Please take care that you might make your lines as code
blocks by inadvertently indenting them.
Module ~~Foo~~ is deprecated.
This is [Bugzilla](http://www.bugzilla.org "View Bugzilla Homepage")
[% terms.bug %] tracking system.
This [example link](http://www.example.com) does not have title.
To define your links in a reference style, define your links any where in
your [% terms.comment %] with the following format:
[bz]: http://www.bugzilla.org "Bugzilla Homepage"
[mz]: http://www.mozilla.org (Mozilla Homepage)
That is, define a unique ID for each link in square brackets with their
corresponding URL and optional title in quotes or parentheses. Then, point to
those links simply by writing your link text in square brackets followed by
the ID in another pair of square brackets.
[Bugzilla][bz] is open-sourced server software designed to help groups
manage software development. [Mozilla][mz] uses [Bugzilla][bz] to track
issues with Firefox and other projects.
| | Grouping ||
First Header | Second Header | Third Header |
------------ | :-----------: | -----------: |
Content | *Long Cell* ||
Content | **Cell** | Cell |
New section | More | Data |
And more | More | **Data** |
which gets converted into:
Grouping | ||
---|---|---|
First Header | Second Header | Third Header |
Content | Long Cell | |
Content | Cell | Cell |
New section | More | Data |
And more | More | Data |
The table rules are:
|
per line|
,-
, =
, :
,.
, +
, or spaces|
Other notes:
|
characters at the beginning and end of lines.----
or ====
to indicate the line between a header and cell. The length of the line doesn’t matter, but must have at least one character per cell.|
) at the end of the cell, as shown in the example. If the cell in question is at the end of the row, then of course that means that pipes are not optional at the end of that row…. The number of pipes equals the number of columns the cell should span.
Apple
: Pomaceous fruit of plants of the genus Malus in
the family Rosaceae.
: An american computer company.
Orange
: The fruit of an evergreen tree of the genus Citrus.
becomes:
You can have more than one term per definition by placing each term on a separate line. Each definition starts with a colon, and you can have more than one definition per term. You may optionally have a blank line between the last term and the first definition.
Definitions may contain other block level elements, such as lists, blockquotes, or other definition lists.
[% PROCESS global/footer.html.tmpl %]