cambiotraining / quarto-course-template

https://cambiotraining.github.io/quarto-course-template/
Other
1 stars 1 forks source link

remove/add answers automatically #16

Open tavareshugo opened 1 month ago

tavareshugo commented 1 month ago

This blog post shows a trick for showing/hiding parts of the markdown (which could be applied to exercise answers).

That solution works for R, but perhaps not quite the same for python-based courses. Would be good to explore whether this can be somehow applied to the callout extension, for example having a conditional that looks at the YAML parameters and adds the extra .content-hidden class to the callout box.

tavareshugo commented 1 month ago

For accessing parameters in lua scripts, see here.