Master GitHub Flavored Markdown with Practical Examples

Logan Jul 13, 2026

Markdown is a lightweight markup language that enables you to add formatting elements to plain text documents effortlessly. GitHub Flavored Markdown, or GFM, is an enhanced version of Markdown, specifically tailored to be used with GitHub's services. Let's dive into some examples to understand how it works and its benefits.

GitHub - lepture/editor: A markdown editor. http://lab.lepture.com/editor/
GitHub - lepture/editor: A markdown editor. http://lab.lepture.com/editor/

GFM allows you to create rich text documents, including headings, lists, links, images, and more, using a simple and intuitive syntax. This makes it an excellent tool for communicating ideas, documenting projects, and improving the readability of your code and content.

two screens showing different types of web pages
two screens showing different types of web pages

Formatting Text

One of the most basic features of GFM is text formatting. You can emphasize text using bold, italic, and striking styles.

the github chat sheet is displayed in pink and black
the github chat sheet is displayed in pink and black

For instance, wrapping text in double asterisks or double underscores makes it bold (**bold text** or __bold text__). Wrapping text in single asterisks or single underscores makes it italic (*italic text* or _italic text_). To create a line through text, enclose it within double tildes, like this: strikethrough text (~~strikethrough text~~).

Headings in GFM

a screenshot of an email form with the contact details section highlighted in purple and white
a screenshot of an email form with the contact details section highlighted in purple and white

GFM enables you to create headings using hash symbols (#) with one to six hashes representing six levels of headings.

For example, a single hash (#) creates an

heading, while six hashes (######) create an

heading. This syntax helps outline your documents and makes them more navigable and visually appealing.

Lists in GFM

Tabla
Tabla

GFM offers two types of lists: ordered and unordered lists.

Unordered lists begin with a dash (-), an asterisk (*), or a plus (+), followed by the list item, like this:

  • * Item 1
  • * Item 2

. For ordered lists, use numbers followed by periods (.), like this:

  1. 1. Item 1
  2. 2. Item 2

GitHub - themeselection/materio-mui-nextjs-admin-template-free: An enterprise-grade Next.js admin dashboard template. Made with developer experience first: Next.js v14 (App Router), Material UI (MUI), Tailwind CSS, TypeScript, ESLint, Prettier, VSCode Configs !! πŸš€
GitHub - themeselection/materio-mui-nextjs-admin-template-free: An enterprise-grade Next.js admin dashboard template. Made with developer experience first: Next.js v14 (App Router), Material UI (MUI), Tailwind CSS, TypeScript, ESLint, Prettier, VSCode Configs !! πŸš€

. You can also nest lists for better organization.

Linking and Images

an image of a computer screen with the wordpress login page displayed on it
an image of a computer screen with the wordpress login page displayed on it
an image of a website page with fruits and vegetables on the front, and below it is
an image of a website page with fruits and vegetables on the front, and below it is
landing page / Π»Π΅Π½Π΄ΠΈΠ½Π³ для ΠΏΡ€ΠΎΠ΄Π°ΠΆΠΈ соков
landing page / Π»Π΅Π½Π΄ΠΈΠ½Π³ для ΠΏΡ€ΠΎΠ΄Π°ΠΆΠΈ соков
an image of a web page with different types in the form of words and numbers
an image of a web page with different types in the form of words and numbers
a screenshot of a web page with several options for text to be added on it
a screenshot of a web page with several options for text to be added on it
the settings page for an iphone app with multiple options to select which one is right for you
the settings page for an iphone app with multiple options to select which one is right for you
ADVENT23/source
ADVENT23/source
an info sheet showing the different types of food
an info sheet showing the different types of food
an image of a web page with different types of information on the screen and text
an image of a web page with different types of information on the screen and text
two screens showing the user's profile and their respective features, one with an orange tab
two screens showing the user's profile and their respective features, one with an orange tab
the upload menu is displayed on an iphone
the upload menu is displayed on an iphone
website templates
website templates
Minecraft Villager Cheat Sheet, Minecraft Cheat Sheet, Best Enchants For Armor Minecraft, Minecraft Enchantments List Bedrock, Minecraft Enchantment Table Language, Minecraft Enchantments List, Minecraft Info, Minecraft Best Enchantments List, Minecraft Enchantments Guide
Minecraft Villager Cheat Sheet, Minecraft Cheat Sheet, Best Enchants For Armor Minecraft, Minecraft Enchantments List Bedrock, Minecraft Enchantment Table Language, Minecraft Enchantments List, Minecraft Info, Minecraft Best Enchantments List, Minecraft Enchantments Guide
a computer screen with some type of programming program on the back ground, and an image of
a computer screen with some type of programming program on the back ground, and an image of
Master Git Fast: 2-Hour Step-by-Step Cheat Sheet
Master Git Fast: 2-Hour Step-by-Step Cheat Sheet
an image of a website page that is open to the user's information section
an image of a website page that is open to the user's information section
an old computer screen with some buttons on it
an old computer screen with some buttons on it
the error screen for an internet device that has been blocked by someone's email
the error screen for an internet device that has been blocked by someone's email
the package overview screen is shown in this screenshote, which shows that packages are available
the package overview screen is shown in this screenshote, which shows that packages are available
Improving the usability of multi-selecting from a long list
Improving the usability of multi-selecting from a long list

Creating links and inserting images in GFM is a breeze. For links, enclose the link text in brackets, followed by the URL in parentheses, like this: [link text](https://url.com). To insert an image, use the same syntax, but add an exclamation mark (!) before the brackets, like this: ![alt text](https://url-to-image.com).

GFM also supports inline code using backticks (```), block code using triple backticks (```), and code blocks with syntax highlighting. Moreover, it enables you to create tables using pipes (|) and hyphens (-), and even enables fenced code blocks and highlight.js code syntax highlighting.

Benefits of Using GitHub Flavored Markdown

GFM simplifies content creation and improves readability. It's widely used across the GitHub ecosystem, ensuring your content is consistent and accessible to a vast community of users.

Its enhanced features, such as task lists, strikeouts, tables, and syntax highlighting, make it a powerful tool for documenting code, writing README files, and creating engaging content in your GitHub profiles and projects.

Embrace GitHub Flavored Markdown, and you'll find that it makes your life as a developer, writer, or communicator easier and more productive. So explore its features, and start enhancing your content and communication today!