Skip to content

Instantly share code, notes, and snippets.

@uvtc
Last active January 22, 2018 18:45
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 uvtc/379bca988270ba8b44a30efabbfa9d6b to your computer and use it in GitHub Desktop.
Save uvtc/379bca988270ba8b44a30efabbfa9d6b to your computer and use it in GitHub Desktop.
markdown lists following 4-space rule
Notice how all list content (regardless of list marker)
always starts at column 4, 8, 12,...
* item 1 containing
multiple lines, all of
which nicely align
vertically.
* item 2
2nd paragraph in item 2
code block in
item 2. Note that it
starts 8-spaces in
3rd paragraph in item 2
* item 3.
Numbered list, this time tighter. The consistency of
the 4-space rule makes nesting easy.
1. won
2. too
* this,
* that,
1. firstly (note, starts 12 spaces in)
2. secondly, with another
line right here.
3. thirdly
* and the other
3. tree
Code blocks are indented similarly to lists,
code block
is here
but have no list marker.
Some markdown implementations also support definition lists:
term 1
: again, content starts at 4 spaces in,
containing multiple lines.
term 2
: some definition
term 3
: some definition
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment