This post has all markdown elements!

This is a pragraph. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis.

Images

Wide image with caption.

//TODO - Image with caption handling - possibly use native figure HTML tags

A Cup

This is a caption for this image

Images work too! Already know the URL of the image you want to include in your article? Simply paste it in like this to make it show up:

Water in a shallow mountain valley in Kluane National Park Photo by Kalen Emsley / Unsplash

One neat trick which you can use in Markdown to distinguish between different types of images is to add a #hash value to the end of the source URL, and then target images containing the hash with special styling. For example, to add a wider image, you need to add the #wide value to the end of the source URL.

Align Left

Fog circling above snowy mountains leading down to Iceberg lake surrounded by trees

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras pulvinar tincidunt turpis ac fringilla. Mauris eget dolor neque. Donec ac ex quis lectus sagittis vestibulum.

Align Right

Snow-covered mountains shrouded in mist and clouds

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis.

This is an H2

Quisque facilisis erat a dui. Nam malesuada ornare dolor. Cras gravida, diam sit amet rhoncus ornare, erat elit consectetuer erat, id egestas pede nibh eget odio. Proin tincidunt, velit vel porta elementum, magna diam molestie sapien, non aliquet massa pede eu diam. Aliquam iaculis. Fusce et ipsum et nulla tristique facilisis.

This is an H3

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero.

This is an H4

Quisque facilisis erat a dui. Nam malesuada ornare dolor. Cras gravida, diam sit amet rhoncus ornare, erat elit consectetuer erat, id egestas pede nibh eget odio. Proin tincidunt, velit vel porta elementum, magna diam molestie sapien, non aliquet massa pede eu diam. Aliquam iaculis.

Quoting

Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero.

“Creativity is allowing yourself to make mistakes. Design is knowing which ones to keep.” ― Scott Adams ―

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero.


Code Blocks

// Simple map
var map;
function initMap() {
  map = new google.maps.Map(document.getElementById('map'), {
    center: {lat: -34.397, lng: 150.644},
    zoom: 8
  });
}

Code blocks, highlighted with Prism.

#!/bin/bash
echo "Info: Executing => $job_command"
eval "$job_command"

if [ "$JOB_SUCCESS_URL" ]; then
  echo "Info: Reporting job success to health check endpoint"
  curl -Ss --retry 3 $JOB_SUCCESS_URL > /dev/null
fi
var Token = _.Token = function(type, content, alias, matchedStr, greedy) {
  this.type = type;
  this.content = content;
  this.alias = alias;
  // Copy of the full string this token was created from
  this.length = (matchedStr || "").length|0;
  this.greedy = !!greedy;
};
/* Styles */

body {
  font: 100%/1.5 Questrial, sans-serif;
  tab-size: 4;
  hyphens: auto
}

a {
  color: inherit
}

section h1 {
  font-size: 250%
}

Lists

Unordered Lists

The HTML <ul> element represents an unordered list of items, typically rendered as a bulleted list.

Usage notes:

  • The <ul> element is for grouping a collection of items that do not have a numerical ordering, and their order in the list is meaningless. Typically, unordered-list items are displayed with a bullet, which can be of several forms, like a dot, a circle or a squared.
  • There is no limitation to the depth and alternation of nested lists defined with the <ol> and <ul> elements.
  • The <ol> and <ul> elements both represent a list of items. They differ in that, with the <ol> element, the order is meaningful.

Ordered Lists

The HTML <ol> element represents an ordered list of items, typically rendered as a numbered list.

Usage notes:

  1. Typically, ordered-list items are displayed with a preceding numbering, which can be of any form, like numerals, letters or Romans numerals or even simple bullets.
  2. There is no limitation to the depth and alternation of nested lists defined with the <ol> and <ul> elements.
  3. The <ol> and <ul> both represent a list of items. They differ in the way that, with the <ol> element, the order is meaningful.

Footnotes

The quick brown fox1 jumped over the lazy dog2.

Footnotes are a great way to add additional contextual details when appropriate. Ghost will automatically add footnote content to the very end of your post.

Tables

Content Categories Flow Content
Permitted content An optional element
Normative document HTML5, section 4.9.1

Videos

This Mountain from Evan Mann / OWP Denver on Vimeo.

Audio


  1. Foxes are red

  2. Dogs are usually not red

About Rowan Gillson

Rowan is a data protection guru, husband, father, photographer, pragmatist and foodie.

Read Next