Reading — step 1 of 5
Read
~1 min readBlock Elements
Headings
Markdown supports two heading styles:
ATX style (most common):
# H1
## H2
### H3
###### H6 (max)
Setext style (only for H1 and H2):
H1 underlined
=============
H2 underlined
-------------
The number of # chars determines the level. Per CommonMark spec, # heading requires a space after the hashes — #heading is NOT a heading.
Optional trailing hashes are allowed: ## Section ## produces <h2>Section</h2> (the trailing hashes are ignored).
To compile:
python
Discussion
Ask a question, share an insight, or help someone who’s stuck.
Sign in to post a comment or reply.
Loading…