Markdown Syntax Guide

The complete cheat sheet for writing standard and GitHub-flavored Markdown. Find exactly what you need.

No results found

Try searching for a different markdown term.

Basic Formatting

Output

Bold text

Italic text

Bold and italic

Strikethrough text

Markdown
**Bold text** __Bold text__ *Italic text* _Italic text_ ***Bold and italic*** ~~Strikethrough text~~

Headings

Output

Heading 1

Heading 2

Heading 3

Markdown
# Heading 1 ## Heading 2 ### Heading 3 #### Heading 4 ##### Heading 5 ###### Heading 6 Alternative syntax: Heading 1 ========= Heading 2 export const meta = { title: "Markdown Guide: Syntax, Tips & Cheat Sheet", description: "Complete Markdown syntax reference guide. Basic formatting, tables, code blocks, task lists, and footnotes. Free, zero-dependencies, and works offline.", category: "guide", published: "2026-03-15", }; ---------

Lists

Unordered & Ordered
  • First item
  • Second item
    • Sub-item 1
    • Sub-item 2
  1. First item
  2. Second item
Markdown
- First item - Second item - Sub-item 1 - Sub-item 2 1. First item 2. Second item 1. Sub-item (indented)
Task Lists
  • Write the code
  • Write the tests
  • Write documentation
Markdown
- [x] Write the code - [ ] Write the tests - [ ] Write documentation

Links & Images

Output

Visit siliconbased.dev

Hover over this link

Automatic URL: https://example.com

(Image representation below)

Image Placeholder
Markdown
[Visit siliconbased.dev](https://siliconbased.dev) [Hover over this link](https://gab.ae "GAB Ventures Website") ![Alt text](/path/to/image.jpg "Optional Title") [![Image Alt Text](/path/to/image.png)](https://example.com)

Code Blocks

Output

Use the print() function.

function helloWorld() {
  console.log("Hello, world!");
}
Markdown
Use the `print()` function. ```javascript function helloWorld() { console.log("Hello, world!"); } ``` Indent by 4 spaces to create a code block.

Tables

Output
Syntax Description Status
Header Title Done
Paragraph Text WIP
Markdown
| Syntax | Description | Status | | :-------- | :---------: | -----: | | Header | Title | Done | | Paragraph | Text | WIP | * The colons (`:`) dictate alignment. * Left (default): `:---` * Center: `:---:` * Right: `---:`

Blockquotes

Output

This is a blockquote.

It can span multiple lines and paragraphs.

You can even nest them.

Markdown
> This is a blockquote. > It can span multiple lines and > paragraphs. > >> You can even nest them.

Footnotes & Misc

Output

Here is a sentence with a footnote.1


1. This is the footnote text at the bottom.

Markdown
Here is a sentence with a footnote.[^1] --- Horizontal Rule (3 or more hyphens/asterisks) *** [^1]: This is the footnote text at the bottom.

What is Markdown?

Markdown is a lightweight markup language with plain-text formatting syntax. Created in 2004 by John Gruber and Aaron Swartz, its primary goal is to be highly readable in its raw form, while being easily convertible to standard HTML. Today, Markdown has become the de facto standard for writing documentation, README files, blog posts, and forum comments across platforms like GitHub, Reddit, and Stack Overflow.

Why Use Markdown?

  • Easy to Learn: The syntax uses standard characters like asterisks and hashes, making it intuitive to pick up compared to writing raw HTML tags.
  • Focus on Content: By using simple symbols for formatting, writers can focus on the content itself rather than getting bogged down in complex formatting rules or GUI editors.
  • Universal Support: Almost every modern CMS, static site generator, and developer platform supports Markdown natively or via plugins.
  • Platform Independent: Since it's plain text, you can write Markdown in any text editor, and it will remain accessible forever, unencumbered by proprietary file formats like `.docx`.

Markdown Flavors

While standard Markdown handles basic formatting, several "flavors" have emerged to add extended functionality. GitHub Flavored Markdown (GFM) is the most prominent, adding support for tables, task lists, and fenced code blocks with syntax highlighting. Other variations include MultiMarkdown and CommonMark, which aims to provide a strict, standard specification for Markdown parsers.