Skip to content

Instantly share code, notes, and snippets.

@johnfoderaro
Created August 6, 2025 17:31
Show Gist options
  • Save johnfoderaro/d2daac65c97fbbedd5ddf59cf816167b to your computer and use it in GitHub Desktop.
Save johnfoderaro/d2daac65c97fbbedd5ddf59cf816167b to your computer and use it in GitHub Desktop.
GitHub Flavored Markdown (GFM) Elements Showcase ⚡️

GitHub Flavored Markdown (GFM) Elements Showcase

This document demonstrates all possible valid Markdown elements supported by GitHub Flavored Markdown (GFM).


Headings

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Paragraphs

This is a paragraph with some italic and bold text, as well as bold italic.


Blockquotes

This is a blockquote.

Nested blockquote.


Lists

Unordered List

  • Item 1
  • Item 2
    • Sub-item 2.1
    • Sub-item 2.2
      • Sub-sub-item 2.2.1
  • Item 3
  • Item 4

Ordered List

  1. First item
  2. Second item
    1. Sub-item 2.1
    2. Sub-item 2.2
  3. Third item

Task List

  • Task 1
  • Task 2
    • Subtask 2.1

Code

Inline Code

Here is some inline code.

Fenced Code Block

def hello():
    print("Hello, world!")

Indented Code Block

Indented code block line 1
Indented code block line 2

Links


Images

GitHub Logo Reference Image


Horizontal Rule



Emphasis

Italic or Italic

Bold or Bold

Bold Italic or Bold Italic


Strikethrough

This text is strikethrough


Tables

Syntax Description Test Text
Header Title Here's this
Paragraph Text And more

Mentions

@octocat


Emoji

😄 🚀 👍 :octocat:


Footnotes

Here is a footnote reference.1


HTML (inline)

This is red text (inline HTML).


Details/Summary (HTML)

Click to expand!

Hidden content inside details/summary.


Checkboxes (Task Lists)

  • Incomplete
  • Complete

Escaping Characters

*This text is surrounded by literal asterisks*

# Not a heading


Math (LaTeX, note: support via extensions)

$$E = mc^2$$

Inline math: $a^2 + b^2 = c^2$


Collapse & Expand (HTML)

Expand for more info

This uses HTML inside Markdown.


Table of Contents (Manual)


This document demonstrates all valid GitHub Flavored Markdown elements in one file.

Footnotes

  1. This is the footnote.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment