```{r}
#| unilur-solution: true
1 + 1
```[1] 2
When you call quarto render, two HTML files will be produced. The one named example-solution.html will have the solution blocks included.
unilur-solution Boolean and the global option show-solution in the YAML header.Of note, if show-solution is absent, it is considered false.
unilur-solution: trueecho: fencedunilur-collapse: falseAny machinery supported by Quarto can be used:
unilur-solution: trueCaution callouts are classic:
Red expected
But tip ones are using a yellow color to better discriminate with the new solution blocks:
Are yellow instead of green-ish
{block}):You can also include div labels with unilur-solution. Note the solution will only show up in the solution file (collapsed box).
Here is a solution that is inside a div. The contents of this will only be shown in the solution document. Source code highlighting is preserved inside the div and executable.
The advantage of working inside the div labels is that standard code formatting and highlighting will apply, and code can be executed alongside standard text.