Skip to content

Instantly share code, notes, and snippets.

@rdjpalmer
Last active August 15, 2017 09:13
Show Gist options
  • Save rdjpalmer/916418ed71d4af9bff727be0e1255f81 to your computer and use it in GitHub Desktop.
Save rdjpalmer/916418ed71d4af9bff727be0e1255f81 to your computer and use it in GitHub Desktop.
Rick's rough guide to writing markdown @ Appear here

Rick’s guide to writing Markdown @ Appear Here

What is Markdown?

Markdown is a form of markup which allows you to add semantics to your content.

Technically speaking it:

is a text-to-HTML conversion tool for web writers. Markdown allows you to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML (or HTML).

What isn’t markdown?

A way of making content look a particular way. When writing markdown, try and remember that you’re trying to add additional meaning to the content, e.g., hierarchy, emphasis, or additional functionality, e.g., links to other content.

Why markdown?

It adds underlying semantics to the content you write. By doing this, our content will perform better in terms of SEO as Google & co’s robots will be able to understand the content better. That, as it’s easy enough to grok.

Initial reading

Give the following a read through, and then come back to this guide. Once you’re familiar with the technicalities, we’ll talk specifics of how it works on Appear Here’s Editorial section.

Headings

Currently we only support headings from 1-4, i.e.:

# Top level heading
## Your second level heading 
### etc.
#### etc.

You’ll never need to use a H1, as that is used by the blog’s title:

An editorial post’s h1

For h2-4, use them as necessary to structure your post in a sensible way. I.e., a h3 should only be used as a subheading to a h2, a h4 as a subheading to a h3 etc.

Emphasis

You have two levels of emphasis you can add to your content:

*emphasised content*

**super-mega-emphasised content**

Which will look something like:

emphasised content

super-mega-emphasised content

Use it sparingly, and not as a way of breaking content up.

Images

Markdown let’s you write images in a mega simple way:

![Image description](IMAGE_URL)

While that’s great, it doesn’t let you add captions to the images in the correct way. Because of this, you’ll have to write some HTML. Don’t worry though, it’ll be a case of copying these snippets and replacing bits of them where necessary.

Image

<figure>
  <img src="IMAGE_URL" alt="IMAGE DESCRIPTION" />
</figure>

Image with caption

<figure>
  <img src="IMAGE_URL" alt="IMAGE DESCRIPTION" />
  <figcaption>
    <p>IMAGE CAPTION</p>
  </figcaption>
</figure>

Note: you should always fill in the image description, as this is enables the computers and screen readers to understand what the image is

Image with link

<figure>
  <a href="LINK_URL">
    <img src="IMAGE_URL" alt="IMAGE DESCRIPTION" />
  </a>
</figure>

Image with link and caption

<figure>
  <a href="LINK_URL">
    <img src="IMAGE_URL" alt="IMAGE DESCRIPTION" />
  </a>
  <figcaption>
    <p>IMAGE CAPTION</p>
  </figcaption>
</figure>

Need more help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment