Markdown Syntax Cheatsheet



  1. Markdown Syntax Documentation
  2. Github Markdown Guide
  3. Markdown Syntax Cheatsheet

Overview

Extended Syntax With the evolution of Markdown, other elements were implemented, enriching the range of options for formatting documents. On the one hand, a little more complexity, but on the other, the language gained more resources for the construction of different documents. Markdown – Graphics(Image) 2. Use brackets! for the alt text, besides that mention the image name inside the parentheses. To add the hoover text, besides the image name, add the hoover text in double-quotes. The code below shows the syntax and then the rendered output: Markdown – Graphics(Image) The rendered output is, Markdown. Note: The instructions from this guide are referring to the Classic Editor. If you are using the WordPress block editor, please see this guide. See the Markdown page for instructions on enabling Markdown for posts, pages and comments on your blog, and for more detailed information about using Markdown. Get Started Cheat Sheet Basic Syntax Extended Syntax Tools Book. The Markdown Guide. Learn Markdown in 60 pages. The Markdown Guide book includes everything you need to get started and master Markdown syntax. ️ Professional quality PDF, MOBI, and EPUB files (DRM-free) ️ Unlimited free lifetime updates.

Need to refresh your memory regarding Markdown syntax? Excellent!

Below are listed the most common and used elements of the language.

Markdown syntax cheatsheet

It is worth mentioning that, here only the basics of Markdown are presented, if you need more information see the basic syntax and extended syntax sections.

Basic syntax

The elements that underlie Markdown are shown below. These formatting elements were described in the original language document and the vast majority of programs support them.

ElementMarkdown
Titles
Bold
Italic
Blockquote
Ordered list
Unordered list
Code
Horizontal rule
Link
Image
Cheatsheet

Extended Syntax

With the evolution of Markdown, other elements were implemented, enriching the range of options for formatting documents. On the one hand, a little more complexity, but on the other, the language gained more resources for the construction of different documents.

Keep in mind that not all applications developed for Markdown support these elements, it is always a good idea to consult the program documentation or the tools section.

ElementMarkdown
Table
Fenced code block
Footnote
title ID
Definition list
Strikethrough
Task List

Markdown

Markdown Syntax Documentation

  • Paragraphs

    • Separate paragraphs with a blank line.

    • Start each heading with one or more hashes, followed by a space.

  • * — Italic

    • Wrap the words in single asterisks.

    • Wrap the words in double asterisks.

  • - — Unordered list

    • Start each line with a dash and a space.

    • Indent before the dash for nested lists.

    • Start each line with a number, period & space.

    • Indent before the number for nested lists.

  • []() — Link

    • [] — link text inside square brackets.

    • () — link URL inside round brackets.

    • Start with an exclamation point.

    • [] — alt text inside square brackets.

    • () — image URL inside round brackets.

  • --- — Horizontal rule

    • Three consecutive dashes on a single line.

    • Surround code inside other text with single backticks.

  • ``` — Code block

    • Start a line with three backticks to make a code block.

    • End the code block with three more backticks on their own line.

    • Optionally specify the code language after the opening backticks.

    • Non standard. Start a list and used square brackets with a space to denote a task.

    • Put an “x” between the square brackets to mark it as complete.

Github Markdown Guide

Markdown cheatsheet pdf

YAML

Always indent with two spaces.

Markdown Syntax Cheatsheet

    • Start with a term, no spaces, followed by a colon and a space.

    • Indent to create nested objects.

  • - value — Arrays

    • Start with a dash, and a space.

    • Arrays inside objects:

    • Objects inside arrays.

    • Surround text with quotes (double or single) to escape text.

    • In all the previous examples the quotes aren’t really necessary. But I find myself almost always adding them for clarity and to prevent myself from having to think about whether I need to escape the or not.

  • > — Folded text block

    • Start with a greater than, and indent the next lines.

    • The text will be collapsed into a single line when parsed.

    • Start with a vertical pipe, and indent the next lines.

    • The text will keep its multiple lines when parsed.

  • --- — Front matter

    • YAML can be used at the top of Markdown documents to add more structured data.

    • Surround the YAML with two lines of consecutive dashes.