Markdown: Title
Title#
Classic title#
To define a title, add a corresponding number of crosses (#) to the desired title level (from 1 to 6) at line start, followed by a space.
Markdown | HTML | Rendering |
---|---|---|
|
<h1>Level 1 title</h1>
|
Level 1 title# |
|
<h2>Level 2 title</h2>
|
Level 2 title# |
|
<h3>Level 3 title</h3>
|
Level 3 title# |
|
<h4>Level 4 title</h4>
|
Level 4 title# |
|
<h5>Level 5 title</h5>
|
Level 5 title# |
|
<h6>Level 6 title</h6>
|
Level 6 title# |
Alternative syntax#
For levels 1 and 2 only, it is possible to use an alternative syntax:
- Repeat characters from 1 to n times, on the line following the title text ((=) for level 1 and (-) for level 2).
Markdown | HTML | Rendering |
---|---|---|
|
<h1>Level 1 title</h1>
|
Level 1 title# |
|
<h2>Level 2 title</h2>
|
Level 2 title# |
Title ID#
To define a title ID, use the following syntax:
- # Title_text {#title_ID}
Markdown | HTML | Rendering |
---|---|---|
|
<h1 id="title_ID">Level 1 title</h1>
|
Level 1 title# |
By default in the theme, title ID corresponds to the Anchor
variable.