Study Guide: Markdown syntax for displaying text elements
Markdown is a lightweight markup language used to add formatting elements to plain text documents. This post shows the syntax for text elements.
Headings
## Heading level 1
## Heading level 2
### Heading level 3
#### Heading level 4
##### Heading level 5
###### Heading level 6
Heading level 1
Heading level 2
Heading level 3
Heading level 4
Heading level 5
Heading level 6
Paragraphs
Example Text
Separate paragraphs by a blank line, such as this:
When I wrote the following pages, or rather the bulk of them, I lived alone, in the woods, a mile from any neighbor, in a house which I had built myself, on the shore of Walden Pond, in Concord, Massachusetts, and earned my living by the labor of my hands only. I lived there two years and two months. At present I am a sojourner in civilized life again.
Resulting HTML
Separate paragraphs by a blank line, such as this:
When I wrote the following pages, or rather the bulk of them, I lived alone, in the woods, a mile from any neighbor, in a house which I had built myself, on the shore of Walden Pond, in Concord, Massachusetts, and earned my living by the labor of my hands only. I lived there two years and two months. At present I am a sojourner in civilized life again.
Emphasis (Italic)
Example Text
Emphasis is also known as *italic*.
*You can also emphasis a whole line, or a whole paragraph. Do NOT add spaces between the asterisks and the enclosed text.*
Resulting HTML
Emphasis is also known as italic.
You can also emphasis a whole line, or a whole paragraph. Do NOT add spaces between the asterisks and the enclosed text.
Bold
**When I wrote the following pages, or rather the bulk of them, I lived alone, in the woods, a mile from any neighbor, in a house which I had built myself, on the shore of Walden Pond, in Concord, Massachusetts, and earned my living by the labor of my hands only. I lived there two years and two months. At present I am a sojourner in civilized life again.**
When I wrote the following pages, or rather the bulk of them, I lived alone, in the woods, a mile from any neighbor, in a house which I had built myself, on the shore of Walden Pond, in Concord, Massachusetts, and earned my living by the labor of my hands only. I lived there two years and two months. At present I am a sojourner in civilized life again.
Bold and Italic
**When I wrote the following pages, or rather the bulk of them, I lived alone, in the woods, a mile from any neighbor, in a house which I had built myself, on the shore of Walden Pond, in Concord, Massachusetts, and earned my living by the labor of my hands only. I lived there two years and two months. At present I am a *sojourner in civilized life again*.**
When I wrote the following pages, or rather the bulk of them, I lived alone, in the woods, a mile from any neighbor, in a house which I had built myself, on the shore of Walden Pond, in Concord, Massachusetts, and earned my living by the labor of my hands only. I lived there two years and two months. At present I am a sojourner in civilized life again.
Blockquotes
Indent and begin the paragraph with the greater than symbol ‘>’ followed by a space.
> When I wrote the following pages, or rather the bulk of them, I lived alone, in the woods, a mile from any neighbor, in a house which I had built myself, on the shore of Walden Pond, in Concord, Massachusetts, and earned my living by the labor of my hands only. I lived there two years and two months. At present I am a sojourner in civilized life again.
When I wrote the following pages, or rather the bulk of them, I lived alone, in the woods, a mile from any neighbor, in a house which I had built myself, on the shore of Walden Pond, in Concord, Massachusetts, and earned my living by the labor of my hands only. I lived there two years and two months. At present I am a sojourner in civilized life again.
Abbreviation
<abbr title="Graphics Interchange Format">GIF</abbr> is a bitmap image format.
GIF is a bitmap image format.
Subscript
H<sub>2</sub>O
H2O
Superscript
X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>
Xn + Yn = Zn
Keybord
Press <kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>DEL</kbd> to end the session.
Press CTRL+ALT+DEL to end the session.
Mark
Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.
Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures.
