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.

MarkdownHTMLRendering
# Level 1 title
<h1>Level 1 title</h1>

Level 1 title#

## Level 2 title
<h2>Level 2 title</h2>

Level 2 title#

### Level 3 title
<h3>Level 3 title</h3>

Level 3 title#

#### Level 4 title
<h4>Level 4 title</h4>

Level 4 title#

##### Level 5 title
<h5>Level 5 title</h5>
Level 5 title#
###### Level 6 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).
MarkdownHTMLRendering
Level 1 title
=============
<h1>Level 1 title</h1>

Level 1 title#

Level 2 title
-------------
<h2>Level 2 title</h2>

Level 2 title#

Title ID#

To define a title ID, use the following syntax:

  • # Title_text {#title_ID}
MarkdownHTMLRendering
# Level 1 title {#title_ID}
<h1 id="title_ID">Level 1 title</h1>

Level 1 title#

By default in the theme, title ID corresponds to the Anchor variable.