flowchart LR A[Harvest] --> B[Weigh] --> C[NIR scan] --> D[Upload]
Quarto syntax
Everything here is regular Markdown plus a few Quarto additions. Each example shows the source, then what it looks like.
Callouts
Five types: note, tip, warning, important, caution.
::: {.callout-tip}
## Label tubes before grinding
Marker rubs off once tubes are frozen.
:::Marker rubs off once tubes are frozen.
Add collapse="true" to make one that starts folded:
::: {.callout-note collapse="true"}
## Why we do it this way
Background that most readers can skip.
:::Background that most readers can skip.
Tabs
Good for instructions that differ by operating system or by crop.
::: {.panel-tabset}
## Windows
Use WinSCP.
## macOS / Linux
Use rclone.
:::Use WinSCP.
Use rclone.
Code blocks
Name the language for syntax highlighting. Add a filename when it helps.
```{.bash filename="Terminal"}
sbatch run_calling.sh
```Terminal
sbatch run_calling.shLinks between pages
Link to the .qmd file with a relative path. Quarto turns it into the right web address.
See [Nextcloud](../computing/nextcloud.qmd).
Jump to a heading: [shared/geno layout](../computing/hpc.qmd#sharedgeno-layout).Images
{fig-alt="Razor blade, cutting surface, and labeled 2 mL tubes on a bench" width="70%"}The text in [ ] is the caption. fig-alt is read by screen readers, so describe what is in the picture.
Diagrams
Quarto draws Mermaid diagrams from plain text.
```{mermaid}
flowchart LR
A[Harvest] --> B[Weigh] --> C[NIR scan] --> D[Upload]
```Running R code
A chunk with {r} runs when the page renders and shows its output. Remove engine: markdown from the page header if you add one, and commit _freeze/ afterwards (see Contributing).
```{r}
#| label: fig-yield
#| fig-cap: "Fruit weight by entry"
library(ggplot2)
ggplot(pheno, aes(entry, fruit_wt)) + geom_boxplot()
```To show R code without running it, leave off the braces: ```r.