Skip to content

Instantly share code, notes, and snippets.

@james2doyle
Created October 23, 2020 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save james2doyle/8b24f9d405c1420b3ec2e46d05dbf198 to your computer and use it in GitHub Desktop.
Save james2doyle/8b24f9d405c1420b3ec2e46d05dbf198 to your computer and use it in GitHub Desktop.
Markdown cheatsheet that is more oriented towards content. Stolen from https://rsms.me/markdown-wasm/

Example

A third of the distance across the Beach, the meadow ends and sand begins. This slopes gradually up for another third of the distance, to the foot of the sand hills, which seem tumbled into their places by some mighty power, sometimes three tiers of them deep, sometimes two, and sometimes only one. A third of the distance across the Beach, the meadow ends and sand begins.

The outline of this inner shore is most irregular, curving and bending in and out and back upon itself, making coves and points and creeks and channels, and often pushing out in flats with not water enough on them at low tide to wet your ankles.

Subtitle

This is another fine paragraph

Smaller subtitle

This is a paragraph with style italic italic bold bold

image

Hello link lol

Hello link lol "cat"

Hello from link to everyone reading this

Here's an important anchor link.

line 1 line 2

Code & Poetry

You can also indent
blocks to display
code or poetry.

Indented code/poetry blocks
can be hard-wrapped.

Or, wrap your code in three backticks:

function codeBlocks() {
  return "Can be inserted"
}

Embedded HTML

With default settings, markdown-wasm allows embedded HTML.

It has been disabled in this demo for safety reasons, by means of setting ParseFlags.NO_HTML. Not setting the NO_HTML flag allows embedding HTML like this:

Block Quotes

You can insert quotes by preceeding each line with >.

Blockquotes can also contain line breaks.

Lists

Unordered lists

  • Unordered
  • Lists
  • Hello

Ordered lists

  1. Ordered
  2. Lists
  3. Numbers are ignored
  4. Ordered
  1. Ordered lists can start
  2. with any number and
  3. use . as well as ) as a separator.

Task lists

  • Task 1
  • Task 2
  • Task 3
  • Regular list item

Tables

Column 1 Column 2 Column 3 Column 4
default left center right

Table of image file types

Header Mime type Extensions Description
89 50 4E 47 0D 0A 1A 0A image/png png PNG image
47 49 46 38 39 61 image/gif gif GIF image
FF D8 FF image/jpeg jpg jpeg JPEG image
4D 4D 00 2B image/tiff tif tiff TIFF image
42 4D image/bmp bmp Bitmap image
00 00 01 00 image/x-icon ico Icon image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment