Markdown 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).
You can also convert markdown to tons of other formats, including PDF, using Pandoc.
I use Markdown as my primary format for all my notes, documentation, documentation, etc.
Basics (which I use)
A paragraph is simply one or more consecutive lines of text, separated by one or more blank lines. Normal paragraphs should not be indented with spaces or tabs.
Atx-style headers (h1, h2, h3, h4, h5, h6) are created by prefixing the line
with #
characters from one to six.
H1 header - # H1 header
Blockquotes are indicated using email-style >
angle brackets.
This is a blockquote. -
> This is a blockquote.
For phrase emphasis I use:
- italic -
*italic*
stroke-~~stroke~~
- bold -
**bold**
- highlight -
\==highlight==
- underline -
<u>underline</u>
- superscript -
<sup>superscript</sup>
- subscript -
<sub>subscript</sub>
- variable -
<var>variable</var>
- mark -
<mark>mark</mark>
- cite -
<cite>cite</cite>
- inserted -
<ins>inserted</ins>
For lists, I use -
as lists marker for unordered lists and 1.
for ordered:
-
First item -
- First item
-
Second item -
- Second item
This is paragraph between list items.
-
Third item -
- Third item
- Indented item -
- Indented item
- Indented item -
- Indented item
- Indented item -
1. Indented item
- Indented item -
2. Indented item
- Indented item -
- Indented item -
-
Fourth item -
- Fourth item
- First item -
1. First item
- Second item -
2. Second item
- Third item -
3. Third item
- Indented item -
1. Indented item
- Indented item -
2. Indented item
- Indented item -
- Fourth item -
4. Fourth item
Tables can be created using |
and ---
:
Formatting:
foo | bar |
---|---|
bar | foo |
| foo | bar |
| --- | --- |
| bar | foo |
Minimal syntax:
foo | bar |
---|---|
bar | foo |
|foo|bar|
|-|-|
|baz|bim|
Extra
Escape backtick character: `
, List`1
Here’s a simple footnote,1 and here’s a longer one.2
You can also use inline footnotes. ^[notice that the carat goes outside of the brackets on this one.]
Footnotes
GitHub Flavored Markdown (GFM)
Alerts
Basic writing and formatting syntax, alerts - GitHub Docs
NOTE
Useful information that users should know, even when skimming content.
TIP
Helpful advice for doing things better or more easily.
IMPORTANT
Key information users need to know to achieve their goal.
WARNING
Urgent info that needs immediate user attention to avoid problems.
CAUTION
Advises about risks or negative outcomes of certain actions.
Obsidian-specific
Some markdown features are specific to Obsidian.
Spoilers
Note: this is custom label
Useful information that users should know, even when skimming content.
TIP
Helpful advice for doing things better or more easily.
IMPORTANT
Key information users need to know to achieve their goal.
WARNING
Urgent info that needs immediate user attention to avoid problems.
CAUTION
Advises about risks or negative outcomes of certain actions.
Custom checkbox
-
[ ]
Unchecked -
[x]
Checked -
↪️
[>]
Rescheduled -
📅
[<]
Scheduled -
❗
[!]
Important -
➖
[-]
Cancelled -
⬛
[/]
In Progress -
❓
[?]
Question -
⭐
[*]
Star -
📌
[n]
Note -
🌏
[l]
Location -
ℹ️
[i]
Information -
💡
[I]
Idea -
💰
[S]
Amount -
👍
[p]
Pro -
👎
[c]
Con -
🔖
[b]
Bookmark -
💭
["]
Quote
TODO
- Daring Fireball: Markdown Basics
- Daring Fireball: Markdown Syntax Documentation
- GitHub Flavored Markdown Spec
- MyST - Markedly Structured Text