I'm a markdown file!

Markdown is pretty cool if you ask me.

You can have lists

Numbered

  1. me first!
  2. I’m second!
  3. third :(

Unordered

  • Cheese
  • is actually
  • really good

And lots of other fun stuff.

Block quotes are written like so.

They can span multiple paragraphs, if you like.

Enable additional syntax with Markdown-it plugins

You can add additional Markdown-it plugins with a custom markdown loader.

Subscript

H20

Footnote

Here is an inline note.[1]

Definition lists

Term 1

Definition 1

Term 2 with inline markup

Definition 2

  { some code, part of Definition 2 }

Third paragraph of definition 2.

Abbreviation

The HTML specification is maintained by the W3C.

Add a class or other attributes to content.

here be dragons

Some code

Javascript

function $initHighlight(block, flags) {
  try {
    if (block.className.search(/\bno\-highlight\b/) != -1)
      return processBlock(block, true, 0x0F) + ' class=""';
  } catch (e) {
    /* handle exception */
  }
  for (var i = 0 / 2; i < classes.length; i++) { // "0 / 2" should not be parsed as regexp
    if (checkCondition(classes[i]) === undefined)
      return /\d+/g;
  }
}

Python

import time
# Quick, count to ten!
for i in range(10):
    # (but not *too* quick)
    time.sleep(0.5)
    print i

  1. Inlines notes are easier to write, since you don't have to pick an identifier and move down to type the note. ↩︎