r4ds/rmarkdown-demos/markdown.Rmd

91 lines
1.4 KiB
Plaintext

Text formatting
------------------------------------------------------------
*italic* _italic_
**bold** __bold__
`code`
superscript^2^
subscript~2~
Headings
------------------------------------------------------------
# 1st Level Header
## 2nd Level Header
### 3rd Level Header
#### 4th Level Header
Lists
------------------------------------------------------------
* Bulleted list item 1
* Item 2
* Item 2a
* Item 2b
1. Numbered list item 1
2. Item 2
3. Item 3
+ Item 3a
+ Item 3b
Links
------------------------------------------------------------
<http://example.com>
[linked phrase](http://example.com)
Images
------------------------------------------------------------
```markdown
![](http://example.com/logo.png)
![optional caption text](path/to/img.png)
```
Footnotes
------------------------------------------------------------
A [linked phrase][id].
Then below:
[id]: text of the note
Block quotes
------------------------------------------------------------
As George Box said:
> All models are wrong
> but some are useful.
Tables ---------------------------------------------------
First Header | Second Header
------------- | -------------
Content Cell | Content Cell
Content Cell | Content Cell
Reference Style Links and Images
Equations -----------------------------------------------
$E = mc^{2}$
$$E = mc^{2}$$