Quarto Markdown Examples

Author

Your Name

Published

May 21, 2024

The label of the code chunk is load-packages, and we set include to false to indicate that we don’t want the chunk itself or any of its outputs in the rendered documents.

1 Introduction

This document provides an overview of the different Markdown features available in Quarto. It includes examples of text formatting, lists, tables, code chunks, and more.

2 Text Formatting

2.1 Headings

3 Heading 1

3.1 Heading 2

3.1.1 Heading 3

3.1.1.1 Heading 4

3.2 Emphasis

Italic
Bold
Bold and Italic

3.3 Blockquotes

This is a blockquote.

3.4 Horizontal Rule


4 Lists

4.1 Unordered List

  • Item 1
    • Subitem 1
    • Subitem 2
  • Item 2

4.2 Ordered List

  1. First item
  2. Second item
    1. Subitem 1
    2. Subitem 2

6 Tables

6.1 Simple Table

Name Age
Alice 25
Bob 30

6.2 Table with Alignment

Name Age
Alice 25
Bob 30

7 Code Blocks

7.1 Inline Code

Use the code tag for inline code.

7.2 Code Block with Syntax Highlighting

# A simple R function
hello_world <- function() {
  print("Hello, World!")
}
hello_world()

7.3 Code Block is hidden but Output is shown

7.4 Code Block is visible but Output is hidden

# A code chunk with results='hide'
x <- 1:10
y <- x^3
print(y)

8

$$

\begin{align*} & = \ & = \

$$