Markup Languages
Markdown is a lightweight markup language for formatting plain text, created by John Gruber in 2004. The goal of Markdown is to format text in a way that remains readable as raw text while also being convertible to HTML or other formats.
Markdown is used extensively in our courses – in R Markdown, Quarto documents, Jupyter Notebooks, and GitHub READMEs. It is not software that needs to be installed but rather a syntax supported by many different tools.
Basic Syntax
Headings
# Heading 1
## Heading 2
### Heading 3
#### Heading 4Text Formatting
| Markdown | Result |
|---|---|
**bold text** |
bold text |
*italic text* |
italic text |
***bold and italic*** |
bold and italic |
`code` |
code |
~~strikethrough~~ |
Links and Images
[Link text](https://www.example.com)
Lists
- Item 1
- Item 2
- Sub-item
1. First item
2. Second item
3. Third itemCode Blocks
```r
x <- c(1, 2, 3, 4, 5)
mean(x)
```Tables
| Column A | Column B |
|----------|----------|
| Value 1 | Value 2 |
| Value 3 | Value 4 |Blockquotes
> This is a quote.
> It can span multiple lines.Installation
Markdown is a syntax, not standalone software – therefore it does not need to be installed. Markdown is natively supported by numerous applications, including:
Further Resources
- Markdown Guide – Comprehensive reference and tutorials
- CommonMark – Standardized Markdown specification
- GitHub Flavored Markdown – GitHub’s extended Markdown variant
- Quarto – Markdown Basics – Markdown in Quarto
- R Markdown Cheatsheet – Quick reference