-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathexample.qmd
117 lines (78 loc) · 2.54 KB
/
example.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
---
title: "Carpentries lesson Example"
format: carpentries-html
---
## Questions, objectives, keypoints
:::::: questions
- question 1
- question 2
::::::
:::::: objectives
- objective 1
- objective 2
::::::
This is an example lesson for The Carpentries.
## Excercises / challenges
::::::::::::::::::::::::::::::::::::: challenge
## Chemistry Joke
Q: If you aren't part of the solution, then what are you?
:::::::::::::::: solution
A: part of the precipitate
:::::::::::::::::::::::::
:::::::::::::::::::::::::::::::::::::::::::::::
## Callout blocks
::: callout
This is a callout block. It contains at least three colons.
:::
### Testimonials
::::::::::::::::::::::::::::::::::::::::::::::: testimonial
I'm **really excited** for the _new template_ when it arrives :grin:.
--- Toby Hodges
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
## Instructor notes
::::::::::::::::::::::::::::::::::::: instructor
This is an instructor note. It contains information that can be useful for
instructors to know such as
- **Useful hints** about places that need extra attention
- **setup instructions** for live coding
- **reminders** of what the learners should already know
- anything else
```markdown
You can also include _any markdown elements_ like `code blocks`
```
![Images can also appear in instructor notes](https://placekitten.com/200/200){alt='a random image of a cute kitten'}
:::::::::::::::::::::::::::::::::::::::::::::::::
## Spoilers
:::::::::::::::::::::::::::::::::::: spoiler
### What Else Might We Use A Spoiler For?
- including a collapsed version of a very long block of output/a large image from a code block,
which the learner can expand if they want to check their output against the lesson
- a reminder of some important concept/information required to follow the lesson,
that you expect only some learners will need to read
- wrapping a set of optional exercises for an episode
::::::::::::::::::::::::::::::::::::::::::::
## Tables
Table: Four fruits with color and price in imaginary dollars
| fruit | color | price |
| ------ | :--------------: | -------: |
| apple | :red_square: | \$2.05 |
| pear | :green_square: | \$1.37 |
| orange | :orange_square: | \$3.09 |
| catfruit | :black_large_square: | \$999.99 |
## Code blocks
```{r}
print("Hello, quarto!")
fn <- function(x) {
for (i in seq_along(x)) {
out <- x[i] + 1
}
out
}
fn(1:10)
```
## Block quotes
> Hello, I'm a blockquote
:::::: keypoints
- keypoint 1
- keypoint 2
::::::