<!--------------------------------------
                Basics
--------------------------------------->

<!--simple headings-->

# Heading 1

## Heading 2

### Heading 3

#### Heading 4

##### Heading 5

###### Heading 6

Heading 7

<!--------------------------------------
                Whitespace
--------------------------------------->

# a

# a

# a

<!--with whitespace-->

## heading with spaces

## heading with spaces and tabs

## heading with newlines

## heading with breaks

## heading with breaks

<!--------------------------------------
            Special Characters
--------------------------------------->

# #hashtag

# # Heading

<!-- just a # sign -->

# \#

# \#

<!-- a # sign at the end would be removed -->

# # Heading \#

# Heading \#

# Heading #\#

<!-- already escaped -->

# Heading \\#

* * *

These should not be recognized as headings:

not title  
\===

not title  
\=

not title  
\---

not title  
\-

#not title

\# not title

\## not title

<!--------------------------------------
                Combinations
--------------------------------------->

<!--inline elements are allowed-->

## **important** `h2` *heading*

<!--inside a link-->

* * *

> ## [Heading 2](/page.html)

* * *

> [**Heading 2**  
> **Heading 5**](/page.html)

* * *

> [**Heading 2**  
> \
> Description Line 1  
> Description Line 2  
> Description Line 3  
> \
> "Some quote"](/page.html)

* * *

<!--with a divider-->

#### More posts from around the site:

* * *

<!--inside inline element-->

### **Heading**