@openexam/cloze
v0.1.0
Published
Fill-in-the-blank cloze widget for OpenExam (spec 0.2).
Readme
@openexam/cloze
Fill-in-the-blank cloze widget. Authors mark blanks inline with
{=answer}. Pipe-separated alternates inside the marker are
accepted ({=Paris|paris}).
::: response cloze
The capital of France is {=Paris} and Spain's is {=Madrid}.
:::The marker syntax is chosen to survive the inline parser: {=
is not a recognized inline construct (only {{ is — that's
interpolation), so the markers reach the widget as plain Text and
the widget extracts them at parseContent time.
Grading is case-insensitive and whitespace-trimmed by default.
Set case-sensitive=true on the directive to require an exact
match.
License
Apache-2.0. See LICENSE and the canonical ../../LICENSE at the repository root.
