Quiz Inline Demo
Introduction
This demonstrates how to embed quiz questions directly in your livebook markdown using the <!-- quiz --> marker.
Setup
Mix.install([{:kino, "~> 0.17.0"}])
Code.require_file("quiz.ex", __DIR__)
BEAM Basics Quiz
Render First Quiz
Quiz.render_from_file(__DIR__ <> "/quiz-inline-demo.livemd", quiz: 1)
OTP Quiz
Render Second Quiz
Quiz.render_from_file(__DIR__ <> "/quiz-inline-demo.livemd", quiz: 2)
Summary
- Hej
- PÅ
The quiz system automatically extracts all <!-- quiz --> sections from the current livebook file and renders them as interactive quizzes!