4 min readLast updated
How to Successfully Create Quizzes for LearnPack 📝
Quizzes are an engaging and effective way to test a user’s knowledge and comprehension of a topic. They help users think critically and make lessons more interactive. In LearnPack, quizzes are created using plain markdown and are rendered into interactive content using specific formatting rules.
In this guide, we’ll explain how to properly structure and format your quizzes to ensure they work seamlessly in LearnPack.
🔑 Key Rules for Creating Quizzes
1. Structure of a Quiz
- Each question must have a title, which serves as the question text itself.
- The question title must be separated by an empty line from the answer options.
- Answer options must be written as a checklist using Markdown’s checkbox syntax (
- [ ]for incorrect answers, and- [x]for the correct answer).
2. One Correct Answer
- Each question must have only one correct answer to avoid ambiguity and ensure the quiz functions correctly.
3. Proper Indentation for Options
- Options must be indented by 3 to 6 spaces under the question title. (If you’re using an editor like VSCode, pressing
Tabto indent usually works.) - Incorrect indentation will cause the quiz to fail when parsed into HTML.
4. Empty Line Between Title and Options
- Always leave a blank line between the question title and the start of the answer options. This is critical for LearnPack to correctly identify the quiz structure.
