CommonMark
The following CommonMark guide is non normative, but included for convenience. For a more detailed introduction we refer the reader the CommonMark Webpage and Specification.
Formatting
Italics
To italicize text, add one asterisk *
or underscore _
both before and after the relevant text.
Example
_Donoghue v Stevenson_ is a landmark tort law case.
will be rendered as:
Donoghue v Stevenson is a landmark tort law case.
Bold
To bold text, add two asterisks **
or two underscores __
both before and after the relevant text.
Example
**Price** is defined in the Appendix.
will be rendered as:
Price is defined in the Appendix.
Bold and Italic
To bold and italicize text, add ***
both before and after the relevant text.
Example
***WARNING***: This product contains chemicals that may cause cancer.
will be rendered as:
WARNING: This product contains chemicals that may cause cancer.
Paragraphs
To start a new paragraph, insert one or more blank lines. (In other words, all paragraphs in markdown need to have one or more blank lines between them.)
Example
This is the first paragraph.
This is the second paragraph.
This is not a third paragraph.
will be rendered as:
This is the first paragraph.
This is the second paragraph. This is not a third paragraph.
Headings
#
(ATX Headings)
Using Level-1 through level-6 headings from are written with a #
for each level.
Example
# US Constitution
## Statutes enacted by Congress
### Rules promulgated by federal agencies
#### State constitution
##### Laws enacted by state legislature
###### Local laws and ordinances
will be rendered as:
US Constitution
Statutes enacted by Congress
Rules promulgated by federal agencies
State constitution
Laws enacted by state legislature
Local laws and ordinances
=
or -
(Setext Headings)
Using Alternatively, headings with level 1 or 2 can be represented by using =
and -
under the text of the heading.
Example
Linux Foundation
================
Accord Project
--------------
will be rendered as:
Linux Foundation
Accord Project
Lists
Unordered Lists
To create an unordered list, use asterisks *
, plus +
, or hyphens -
in the beginning as list markers.
Example
* Cicero
* Ergo
* Concerto
Will be rendered as:
- Cicero
- Ergo
- Concerto
Ordered Lists
To create an ordered list, use numbers followed by a period .
.
Example
1. One
2. Two
3. Three
will be rendered as:
- One
- Two
- Three
Nested Lists
To create a list within another, indent each item in the sublist by four spaces.
Example
1. Matters related to the business
- enter into an agreement...
- enter into any abnormal contracts...
2. Matters related to the assets
- sell or otherwise dispose...
- mortage, ...
will be rendered as:
- Matters related to the business
- enter into an agreement...
- enter into any abnormal contracts...
- Matters related to the assets
- sell or otherwise dispose...
- mortgage, ...
Horizontal Rule
A horizontal rule may be used to create a "thematic break" between paragraph-level elements. In markdown, you can create a thematic break using either of the following:
___
: three consecutive underscores---
: three consecutive dashes***
: three consecutive asterisks
Example
___
---
***
Will be rendered as:
Escaping
Any markdown character that is used for a special purpose may be escaped by placing a backslash in front of it.
For instance avoid creating bold or italic when using *
or _
in a sentence, place a backslash \
in the front, like: \*
or \_
.
Example
This is \_not\_ italics but _this_ is!
Will be rendered as:
This is _not_ italics but this is!