The Dead Simple Markdown Guide to Headings

Markdown headings are created using number signs (#) corresponding to the heading level. Use alternative syntax for H1 and H2, and remember to include blank lines before and after headings for better compatibility and appearance.


This content originally appeared on HackerNoon and was authored by Typesetting

Headings

To create a heading, add number signs (#) in front of a word or phrase. The number of number signs you use should correspond to the heading level. For example, to create a heading level three (<h3>), use three number signs (e.g., ### My Header).

\

\

Alternate Syntax

Alternatively, on the line below the text, add any number of == characters for heading level 1 or -- characters for heading level 2.

\

Heading Best Practices

| ✅  Do this | ❌  Don't do this | |----|----| | # Here's a Heading | #Here's a Heading |

You should also put blank lines before and after the heading for compatibility.

\

| ✅  Do this | ❌  Don't do this | |----|----| | Try to put a blank line before… \n \n # Heading \n \n …and after a heading | Without blank lines, this might not look right. \n # Heading \n Don’t do this! |

\ \

:::info This guide is a Matt Cone project available on Markdown Guide under the CC BY-SA 4.0 license.

:::

\


This content originally appeared on HackerNoon and was authored by Typesetting


Print Share Comment Cite Upload Translate Updates
APA

Typesetting | Sciencx (2024-08-20T15:47:38+00:00) The Dead Simple Markdown Guide to Headings. Retrieved from https://www.scien.cx/2024/08/20/the-dead-simple-markdown-guide-to-headings/

MLA
" » The Dead Simple Markdown Guide to Headings." Typesetting | Sciencx - Tuesday August 20, 2024, https://www.scien.cx/2024/08/20/the-dead-simple-markdown-guide-to-headings/
HARVARD
Typesetting | Sciencx Tuesday August 20, 2024 » The Dead Simple Markdown Guide to Headings., viewed ,<https://www.scien.cx/2024/08/20/the-dead-simple-markdown-guide-to-headings/>
VANCOUVER
Typesetting | Sciencx - » The Dead Simple Markdown Guide to Headings. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/08/20/the-dead-simple-markdown-guide-to-headings/
CHICAGO
" » The Dead Simple Markdown Guide to Headings." Typesetting | Sciencx - Accessed . https://www.scien.cx/2024/08/20/the-dead-simple-markdown-guide-to-headings/
IEEE
" » The Dead Simple Markdown Guide to Headings." Typesetting | Sciencx [Online]. Available: https://www.scien.cx/2024/08/20/the-dead-simple-markdown-guide-to-headings/. [Accessed: ]
rf:citation
» The Dead Simple Markdown Guide to Headings | Typesetting | Sciencx | https://www.scien.cx/2024/08/20/the-dead-simple-markdown-guide-to-headings/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.