Try โ€‚โ€‰HackMD

๐Ÿ–‹๏ธ Markdown

About

Overview

  • Format used for GitHub Readme.md files, StackOverflow, and etc.
  • Created by John Gruber and Aaron Swartz in 2004
  • There are many versions of Markdown with different features.
    • Use Markdown and/or HTML code that is universal across versions.

Resources

Topics

Indent sub-items

  • Two or three spaces depending on the implementation
  • An empty line break between items is required in some implementations

Images

Center items

Equality

  • Greater than or equals
    • $\ge$
    • \(\ge\)
  • Less than or equals
    • $\le$
    • \(\le\)

Embed

Represent keyboard input

Equation formatting

  • In line
    • $1 + 1$
    • \(1 + 1\)
  • Page centered
    • $$1 + 1$$
      \[1 + 1\]

Line break

Strikethrough

Highlight

Subscript

  • $CO_2$
  • CO<sub>2</sub>_
  • \(CO_2\)

Superscript

  • $MC^2$
  • MC<sup>2</sup>
  • \(MC^2\)

Escape characters

Comments

Links

  • Wrap link text: (some link text)[1]
    • Provide link at the bottom of the page: [1]: [www.somelinktext.com](http://www.somelinktext.com)

Email

  • mailto:someemail@domain.xyz
    • Do not include prefix https://

Phone

  • US: tel:1234567890
  • Int'l: tel:+11234567890

Open in a new tab

  • <a href="https://duckduckgo.com" target="_blank">Duck Duck Go</a>

Tables

About

  • Markdown formatting that doesn't work in tables: Headings, lists, line breaks, images, horizontal rules, and blockquotes
  • You have to use HTML

Convert a table from a Google document

HTML table builders

Center a table

Resources

Style and theme

This is not technical advice. Always read the official documentation and do your own research.