Markdown Syntax for Dummies
Further to my post of a few days ago, I have compiled an easier-to-read list of Markdown’s syntax for future reference.
Basic Character Codes
**strong**
or __bold__
strong or bold
*emphasis* or
_italics_`
emphasis or italics
two spaces followed by a line break
Head Levels
Pound symbols (one for each level) followed by a space
## H2 Level Head
H2 Level Head
Block Quotes
> Block Quote text
Block Quote text
Lists
Unordered lists use asterisks *, pluses +, and hyphens —, followed by a space, interchangeably as list markers:
* bob
* frank
* sue
Ordered Lists have any numeral (e.g. 1) followed by a period and a space
1. abc
1. bcd
4. cde
1. abc
1. bcd
4. cde
Code
INline code can be displayed by using backticks ` at the start and end`
sudo write code here
Code blocks can have 3 backticks ``` at the start and finish:
line one code
line two code
line three code
Horizontal Rule
Three or more hyphens, asterisks, or underscores on a line by themselves
***
Hyperlinks
This is [an example](http://example.com/)
inline link.
This is an example
or
Define [ID1]: http://example.com/` as a link anywhere in the body and call it using
ID1`
ID1
Images
![Alt text](http://macblaze.ca/wp-content/uploads/2014/12/1-150x82.jpg)
Images can also be defined. Define [ID2]: http://macblaze.ca/wp-content/uploads/2014/12/1-150x82.jpg`
ID2`
and call it using
ID2
Backslash Escapes
Markdown allows you to use backslash escapes to generate literal characters that have special meaning in Markdown’s formatting syntax.
\*literal asterisks\*
*literal asterisks*
\ backslash
` backtick
* asterisk
_ underscore
{} curly braces
[] square brackets
() parentheses
# hash mark
+ plus sign
- minus sign (hyphen)
. dot
! exclamation mark
Tables (Markdown Extra)
(doesn’t seem to be working on WP’s Markdown interpreter)
|Trees|Cats!|Beer?|
|---:|:---|:---:|
|oak|ginger|ale|
beechnut|calico-cross|pilsner
walnut|manx|stout
| Trees|Cats!|Beer?|
| —:|:—|:—:|
| oak|ginger|ale|
| beechnut|calico-cross|pilsner
walnut|manx|stout