Skip to content

Quizzes don't show the correct answer #90

Closed

Description

@markotoplak

Check the first quiz in https://notes.biolab.si/documentation#Questions and pick Berlin.

Image

It would be a good default if the correct answer was shown if the user is out of attempts. Especially for questions without explanation.

I went back in history, and this is behaving as it is at least since the middle of August, so it is unlikely a new bug.

Activity

  1. janezd commented on Sep 23, 2025

    @janezd
    Contributor

    I don't think it was ever shown. In the first implementation, you had to specify a scorer function. It almost always looked like scorer={(answer) => answer === "Paris"}, so we only later added answer="Paris" as an alternative to scorer. Hence, the correct answer couldn't be shown because it wasn't explicitly given.

    That said, #95 now shows the correct answer if it is known -- given as answer or marked with an asterisk in option, but not if the answer is checked by scorer.

    Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions