quarto-exercises
quarto-exercises is a Quarto extension for small interactive practice questions in HTML documents.
Use it to add multiple-choice questions, inline blanks, and dropdown choices to Quarto pages. Blanks and choices also work inside syntax-highlighted code blocks.
Install
quarto add VisruthSK/quarto-exercisesEnable the filter in a document or project:
filters:
- quarto-exercisesMinimal Example
Add this markup to your document to render a simple multiple-choice exercise:
::: {.exercise}
Who carried the One Ring?
::: {.answer correct=true}
Frodo
:::
::: {.answer}
Boromir
:::
:::Routing
- Use Example to see rendered exercises.
- Use Reference to write your own. Start here when writing exercises. It covers syntax, options, checking modes, scoring, and styling.
- Use Full Page Check to see page-level checking and scoring.
- Use GitHub README for package documentation and more details.