mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-07 10:08:50 -05:00
Ensures quizzes are injected correctly in nested sections by tracking section levels and flushing previous sections only when encountering a header of the same or higher level. Also resets quiz flags when a section without a quiz is encountered.