Markdown

Basics

Let's face it: Writing content for the Web is tiresome. WYSIWYG editors help alleviate this task, but they generally result in horrible code, or worse yet, ugly web pages.

Markdown is a better way to write HTML, without all the complexities and ugliness that usually accompanies it.

Some of the key benefits are:

  1. Markdown is simple to learn, with minimal extra characters so it's also quicker to write content.
  2. Less chance of errors when writing in markdown.
  3. Produces valid XHTML output.
  4. Keeps the content and the visual display separate, so you cannot mess up the look of your site.
  5. Write in any text editor or Markdown application you like.
  6. Markdown is a joy to use!

John Gruber, the author of Markdown, puts it like this:

The overriding design goal for Markdown’s formatting syntax is to make it as readable as possible. The idea is that a Markdown-formatted document should be publishable as-is, as plain text, without looking like it’s been marked up with tags or formatting instructions. While Markdown’s syntax has been influenced by several existing text-to-HTML filters, the single biggest source of inspiration for Markdown’s syntax is the format of plain text email. -- John Gruber

Grav ships with built-in support for Markdown and Markdown Extra. You must enable Markdown Extra in your system.yaml configuration file

Without further delay, let us go over the main elements of Markdown and what the resulting HTML looks like:

Bookmark this page for easy future reference!

Links

Posted on 08/07/2025 12:25PM

Basic link [Assemble](http://assemble.io) Renders to (hover over the link, there is no tooltip): Assemble HTML: Assemble Add a title [Upstage](https://github.com/upstage/ "Visit Upstage!") Renders to (hover over the link, there should be a tooltip):...

Images

Posted on 08/07/2025 12:25PM

Images have a similar syntax to links but include a preceding exclamation point. ![Minion](http://octodex.github.com/images/minion.png) or ![Alt text](http://octodex.github.com/images/stormtroopocat.jpg "The Stormtroopocat") Like links, Images also have a footnote style syntax ![Alt te...

Blockquotes

Posted on 08/07/2025 12:24PM

For quoting blocks of content from another source within your document. Add > before any text you want to quote. > **Fusion Drive** combines a hard drive with a flash storage (solid-state drive) and presents it as a single logical volume with the space of both drives combined. Renders to: ...

Basic Markdown

Posted on 08/07/2025 12:24PM

Headings Headings from h1 through h6 are constructed with a # for each level: # h1 Heading ## h2 Heading ### h3 Heading #### h4 Heading ##### h5 Heading ###### h6 Heading Renders to: h1 Heading h2 Heading h3 Heading h4 Heading h5 Heading h6 Heading HTML: h1 Heading