Markdown is an easy-to-write plain text format for creating web content. See Using Markdown with RStudio to learn more.
*italic* **bold**
_italic_ __bold__
Header 1
=========================
Header 2
-------------------------
### Header 3
#### Header 4
* Item 1
* Item 2
* Item 2a
* Item 2b
1. Item 1
2. Item 2
3. Item 3
* Item 3a
* Item 3b
End a line with two or more spaces:
Roses are red,
Violets are blue.
Use a plain http address or add a link to a phrase:
http://example.com
[linked phrase](http://example.com)
Images on the web or local files in the same directory:
![alt text](http://example.com/logo.png)
![alt text](figures/img.png)
A friend once said:
> It's always better to give
> than to receive.
R code will be evaluated and printed
```{r}
summary(cars$dist)
summary(cars$speed)
```
There were `r nrow(cars)` cars studied
Plain code blocks are displayed in a fixed-width font but not evaulated
```
This text is displayed verbatim / preformatted
```
We defined the `add` function to
compute the sum of two numbers.
See also: Using Equations with Markdown
$equation$
$latex equation$
\( equation \)
$$ equation $$
$$latex equation $$
\[ equation \]
Three or more asterisks or dashes:
******
------
First Header | Second Header
------------- | -------------
Content Cell | Content Cell
Content Cell | Content Cell
A [linked phrase][id].
At the bottom of the document:
[id]: http://example.com/ "Title"
![alt text][id]
At the bottom of the document:
[id]: figures/img.png "Title"
superscript^2
~~strikethrough~~
ASCII characters are transformed into typographic HTML entities:
``like this''
) into “curly” quotes
--
” and “---
”) into en- and em-dash entities
...
”) into an ellipsis entity
1/4
, 1/2
, and 3/4
into ¼, ½, and ¾.
(c)
, (tm)
, and (r)
into ©, ™, and ®