Markdown Style Guide


Headings

The following HTML <h1><h6> elements represent six levels of section headings. <h1> is the highest section level while <h6> is the lowest. (Note: The <h2> element has extra spacing at the top margin for design reasons.)

H1 - Page Title

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Cum exercitationem consequuntur quia placeat illum ex enim rerum quis aliquam. Accusamus.

H2 - Primary Heading

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Cum exercitationem consequuntur quia placeat illum ex enim rerum quis aliquam. Accusamus.

H3 - Secondary Heading

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Cum exercitationem consequuntur quia placeat illum ex enim rerum quis aliquam. Accusamus.

H4 - Small Heading

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Cum exercitationem consequuntur quia placeat illum ex enim rerum quis aliquam. Accusamus.

H5 - Smaller Heading

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Cum exercitationem consequuntur quia placeat illum ex enim rerum quis aliquam. Accusamus.

H6 - Smallest Heading

Paragraph

Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat.

Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.

Code Blocks

Inline code (single backticks) look like this.

Code blocks (three backticks) look like this:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>Example HTML5 Document</title>
  </head>
  <body>
    <p>Test</p>
  </body>
</html>

Images

Here is a simple image using Markdown. (Images embedded using markdown syntax and stored in /src/img will be processed by Astro Image.)

![Image alt info goes here](../../img/blog/placeholder.png 'This text appears as tooltip when hovering cursor over image')

Image alt info goes here

And here is an image in a figure element with a figcaption. (Images embedded using HTML and stored in /public are not processed by Astro Image.)

<figure>
  <img src="/social.png" alt="This is a placeholder image description" />
  <figcaption>This is a caption, a quick blurb about the above image.</figcaption>
</figure>
This is a placeholder image description
This is a caption, a quick blurb about the above image.

Blockquotes

I use the <blockquote> element as an “information” block instead, styled with CSS.

> This is a blockquote, which I use for detailed information rather than quoting.

This is a blockquote, which I use for detailed information rather than quoting.

Tables

Sometimes I use tables to display information. Below are the code and result:

| Emphasis     | Strong     | Strikethrough       |
| ------------ | ---------- | ------------------- |
| `_emphasis_` | `*strong*` | `~~strikethrough~~` |
| _emphasis_   | **strong** | ~~strikethrough~~   |
EmphasisStrongStrikethrough
_emphasis_*strong*~~strikethrough~~
emphasisstrongstrikethrough

Lists

I like lists! I use them all the time in the blog and wiki becausing organizing information using lists pleases my brain.

Ordered List

  1. First item
  2. Second item
  3. Third item

Unordered List

Nested lists

Code

- Gear
  1. Laptop
  2. Camera
  3. Lens

Result

Code

- Genres
  - Science Fiction
    - The Reality Dysfunction
    - Starship Troopers
    - Ender's Game
  - Fantasy
    - Lord of the Rings
    - Stormlight Archive
    - Broken Earth
  - Non-Fiction
    - Zen and the Art of Motorcycle Maintenance
    - Astrophysics for People in a Hurry

Result

Other Elements — abbr, sub, sup, kbd, mark

Appreviation

<abbr title="Graphics Interchange Format">GIF</abbr> becomes GIF


Subscript

H<sub>2</sub>O becomes H2O


Superscript

X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup> becomes Xn + Yn = Zn


Highlighting

<mark>Hello World</mark> becomes Hello World


The <kbd> element

<kbd>ENTER</kbd> becomes ENTER

<kbd><kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd></kbd> becomes CTRL+ALT+Delete