mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-10 15:49:25 -05:00
Implements a Lua filter that injects quizzes and answers into the Pandoc document from a JSON file specified in the YAML metadata. The filter searches for the quiz file in multiple locations and registers sections for quiz injection. It formats quiz questions as markdown callouts and collects answer blocks to be appended at the end of the document under a "Self-Check Answers" section. This provides a mechanism for embedding interactive quizzes directly into course content.