Esc

COMARK4006 · error

comark/quiz/duplicate-id

Give each quiz block its own #id

Two blocks with one id share their saved answers and results, so answering one changes the other. Give each block an id of its own.

Incorrect

::poll{#lesson-poll}
What should the next lesson cover?

- [ ] Web Workers
- [ ] Streams
::

::poll{#lesson-poll}
How long should it be?

- [ ] Five minutes
- [ ] Fifteen minutes
::
md
lint-comark example.mdexample.md:8:1 comark/quiz/duplicate-id::poll 2 (#lesson-poll) has the same id as ::poll 1 (#lesson-poll), so their answers mix.Give each block its own id.✖ 1 problem

Correct

::poll{#next-topic}
What should the next lesson cover?

- [ ] Web Workers
- [ ] Streams
::

::poll{#next-length}
How long should it be?

- [ ] Five minutes
- [ ] Fifteen minutes
::
md
lint-comark example.md✔ No problems