Markdown
Introduction
Markdown is a plaintext formatting syntax, curated by John Gruber.
It is commonly used for README files, and other plaintext writing which can be
transformed into structurally valid HTML syntax. It has been adopted by
several message-boards and websites to allow basic customisations (such as
bold, italics and code
stylings on text).
Inline styling:
*italic* _also italic_
**bold**
`code`
Headings:
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6
Paragraphs:
A paragraph is one or more consecutive lines of text, separted by one or more blank lines.
Same paragraph.
This is a separate paragraph.
Horizontal rules:
* * *
---
___
Blockquotes:
> This is a blockquote.
> This is a blockquote with attribution/citation.
> -- <cite>Citation</cite>
Tables:
Tables are not part of the default markdown spec, but
| Name | Age |
|--------|------|
| Bob | 27 |
| Alice | 23 |
Code Blocks:
```python3
def fn():
print("Hello world.")
return
```
Code-blocks can also be intended with 4-spaces.
HTML support:
<html></html>
<!-- HTML is supported directly within markdown. -->
Images:
![Alt text](/path/to/img.jpg "Title text")
Links:
[Example link](https://example.com/ "Title text")
[Example reference link][1]
[1]: https://example.com/ "Title text"
Ordered lists:
1. First item
2. Second item
3. Third item
2. Markdown list numbers...
2. ... don't have to match!
Unordered lists:
* List item
* Another item
* A further item
- List item
- Another item
- A further item
+ This is
+ also
+ supported
Nested lists:
* Fruit
* Apple
* Orange
* Banana
* Dairy
* Milk
* Cheese
Further reading:
- Author:
- Jonathan Street
- Permalink:
- https://jstreet.uk/notes/markdown/
- Published: