Quarto

markdown elementals

Markdown elements

Text Formatting

Markdown Syntax Output
*italics* and **bold**
italics and bold
superscript^2^ / subscript~2~
superscript2 / subscript2
~~strikethrough~~
strikethrough
`verbatim code`
verbatim code

Headings

Markdown Syntax Output
# Header 1

Header 1

## Header 2

Header 2

### Header 3

Header 3

#### Header 4

Header 4

##### Header 5
Header 5
###### Header 6
Header 6

Lists

Markdown Syntax Output
* unordered list
    + sub-item 1
    + sub-item 2
        - sub-sub-item 1
  • unordered list

    • sub-item 1

    • sub-item 2

      • sub-sub-item 1

Lists

Markdown Syntax Output
1. ordered list
2. item 2
    i) sub-item 1
         A.  sub-sub-item 1
  1. ordered list

  2. item 2

    1. sub-item 1

      1. sub-sub-item 1

Tables

Markdown Syntax

| Right | Left | Default | Center |
|------:|:-----|---------|:------:|
|   12  |  12  |    12   |    12  |
|  123  |  123 |   123   |   123  |
|    1  |    1 |     1   |     1  |

Output

Right Left Default Center
12 12 12 12
123 123 123 123
1 1 1 1

Equations

Markdown Syntax Output
inline math: $E = mc^{2}$
\(E=mc^{2}\)
display math:

$$E = mc^{2}$$
\[E = mc^{2}\]

Blocks

Markdown Syntax Output
> Blockquote

Blockquote

| Line Block
|   Spaces and newlines
|   are preserved

Line Block
   Spaces and newlines
   are preserved

Specials

Markdown Syntax Output
endash: --
endash: –
emdash: ---
emdash: —
term
: definition
term

definition

The header yaml

Setting up the document

---
title: "Document title"
author: "Your Name"
execute:
  echo: false
format: html
--- 
---
title: "Document title"
author: "Your Name"
execute:
  echo: false
format: pdf
--- 
---
title: "Document title"
author: "Your Name"
execute:
  echo: false
format: revealjs
--- 
  • Set up important document settings
  • Changing format is easy
    • some settings might not work
  • Many more options
    • some depending on output format
    • some depending on template

Break

10:00