xamgore2k downloadsRender ```quiz code blocks into interactive multiple-choice quizzes. Pick an answer, check if you’re right, and see explanations right inside your notes.
Render ```quiz code blocks into interactive multiple-choice quizzes directly inside Obsidian notes.
You basically describe a quiz with a YAML code block.
The plugin transforms it into a nice interactive form.
Depending on the quiz type, one or multiple options can be selected.
There is a Check button that highlights right, wrong, and missed answers,
with optional feedback commentary. Great for self-education and learning notes.
radio — single correct option
```quiz
type: radio
content: >-
When you are merging onto the freeway, you should be driving:
options:
- content: 5 to 10 MPH slower than the traffic on the freeway.
feedback: When merging onto the freeway if you are travelling slower than the traffic around you, other drivers will have to brake or change lanes in order to allow you to enter the flow of traffic. This could cause drivers to make sudden changes which may cause accidents.
- content: The posted speed limit for traffic on the freeway
feedback: The posted limit for any roadway is a limit and may not be a safe speed for traffic under current conditions. When merging into traffic, the most important thing is to be travelling at approximately the same speed as those around you so that you can join the flow of traffic with the least disruption.
- content: At or near the same speed as the traffic on the freeway.
feedback: If you are driving at or near the speed of traffic around you, you will be able to merge into the right hand land with minimal disruption to the flow of traffic around you.
correct: true
```
checkbox — multiple correct options
```quiz
type: checkbox
content: >-
When do you call the police?
options:
- content: You witnessed a crime.
correct: true
- content: You got an injury.
- content: Somebody else got an injury.
correct: true
- content: You need a pizza.
feedback: Very funny.
- content: You've seen a suspect.
```
choice — multiple questions sharing the same options
```quiz
type: choice
content: >-
Answer the following questions with one of: true, false, unknown.
options:
- id: true
content: True.
- id: false
content: False.
- id: unknown
content: Unkonwn.
questions:
- content: Coconut may have bisexual flowers.
correct_option: true
- content: 1970 is the year when George Washington delivered the first State of the Union.
correct_option: true
- content: The hell exists.
correct_option: unknown
```
noodle — multiple questions connected with options
```quiz
type: noodle
content: >-
Connect each country with its capital.
options:
- content: Moscow
- content: Paris
- content: Oslo
- content: Kiev
questions:
- content: France
correct: Paris
- content: Norway
correct: Oslo
- content: Ukraine
correct: Kiev
```
text — free text without forced validation
```quiz
type: text
content: >-
Should you believe in God?
# optional reference answer shown after pressing [Check]
correct: >-
Well, there is no the right answer here, as it's all personal.
```
prompt — fill in the ==gaps==
```quiz
type: prompt
content: |-
The chemical symbol for water is ==H²O==.
It freezes at ==0°C== under standard atmospheric pressure.
# optional feedback shown after pressing [check]
feedback: >-
Use ==double equals== to hide text until you reveal the answer.
```
Quiz Blocks is currently waiting for approval to appear in the official Obsidian Community Plugins list. Until then, it can be installed and automatically updated using BRAT or manually.
https://github.com/xamgore/obsidian-quiz-blocks
obsidian-quiz-blocks.zip from the
GitHub releases page.YOUR_VAULT/.obsidian/plugins/shuffle: trueQuiz options can be shuffled to reduce pattern recognition and avoid learning answer positions. Default is false.
gated: trueQuiz content can be gated—encouraging closed-book testing and active recall. Note's text becomes hidden until you complete the quiz or stop interacting with the quiz. Default is false.
instant: trueInstant feedback after choosing an option. [Check] button is hidden.
This is an early-stage plugin, bugs are possible. Feel free to open an issue and share feedback.
To access an interactive quiz in the preview mode, you have to write some YAML code in the source mode. Unfortunately, there is no syntax highlighting to assist you (vote #3). Additionally, errors related to missing fields can be quite cumbersome (vote #4).
shuffle and instant are not implemented yet.cards.These are just a few examples of recurring requests and discussions in the Obsidian community around lightweight quiz functionality.
@amcasas: need some type of quiz function that you can add at the end of each note
@deleted: in such a way that a maximum of one option is choosable for each question.
@30DayThrill: looking for a quizlet-esque solution where I can create more multiple choice or question and answer style tests.
If you find this plugin useful, please consider telling others about it or starring the repository ⭐️