Table of Contents
- Headers
- Emphasis
- Lists
- Links
- Images
- Code and Syntax Highlighting
- Tables
- Blockquotes
- Horizontal Rule
- Line Breaks
Headers
# H1
## H2
### H3
#### H4
##### H5
###### H6
Alt-H1
======
Alt-H2
------H1
H2
H3
H4
H5
H6
Alt-H1
Alt-H2
Emphasis
**bold** and __bold__
*italics* and _italics_
**bold and _italic_**
~~strikethrough~~
bold and bold
italics and italics
bold and italic
strikethrough
Lists
* list item
* sub-list item
- minus1
- minus2
+ plus1
+ plus2
1. ordered list item
9. incorrectly ordered list item
- list item
- sub-list item
- minus1
- minus2
- plus1
- plus2
- ordered list item
- incorrectly ordered list item
Links
[inline link](rhysormond.com/markdown#links)
[inline link with title attribute](rhysormond.com/markdown#links "title")
[reference-style link][link definition]
[relative link to page](../markdown)
[anchor link](#links)
Implicit reference: [link definition]
Autolink: <rhysormond.com/markdown#links>
[link definition]:rhysormond.com/markdown#links
inline link with title attribute
Implicit reference: link definition
Autolink: <rhysormond.com/markdown#links>
Images

![alt text][favicon]
[favicon]:/favicon-96x96.png "reference format"
![]()
![]()
Code and Syntax Highlighting
Inline `code` span
```rust
#[cfg(test)]
mod tests {
use super::*;
// Docstring
#[test]
fn test_magic() -> Result<(), String> {
let x: String = String::from("test");
assert_eq!(magic(x), x);
Ok(())
}
}
```
Inline code span
#[cfg(test)]
mod tests {
use super::*;
// Docstring
#[test]
fn test_magic() -> Result<(), String> {
let x: String = String::from("test");
assert_eq!(magic(x), x);
Ok(())
}
}
Tables
| Col 1 | Col 2 | Col 3 |
| ------------- |:-------------:| -----:|
| col 3 is | right-aligned | --: |
| col 2 is | centered | :-: |
| default is | left-aligned | --- || Col 1 | Col 2 | Col 3 |
|---|---|---|
| col 3 is | right-aligned | --: |
| col 2 is | centered | :-: |
| default is | left-aligned | --- |
Blockquotes
> Blockquote
> that can span multiple lines.
Blockquote that can span multiple lines.
Horizontal Rule
Three or more
---
Hyphens
***
Asterisks
___
Underscores
Three or more
Hyphens
Asterisks
Underscores
Line Breaks
Single newlines
are concatenated.
Two new lines create a paragraph break.
Two trailing spaces create a new line within the same paragraph.
Single newlines are concatenated.
Two new lines create a paragraph break.
Two trailing spaces create a new line within the same paragraph.