Auto-Numbering¶
This page demonstrates the auto-numbering feature. When enabled, each quiz automatically gets a Question N header.
How It Works¶
Auto-numbering can be enabled globally in mkdocs.yml:
plugins:
- mkdocs_quiz:
auto_number: true
Or per-page using front matter (like this page):
---
quiz:
auto_number: true
---
Example Quizzes¶
Below are several quizzes to demonstrate the auto-numbering in action.
Styling¶
The question numbers are rendered as <h4> headers with the class quiz-number:
<h4 class="quiz-number">Question 1</h4>
You can customize the appearance with custom CSS:
.quiz-number {
color: var(--md-primary-fg-color);
font-size: 1.2rem;
text-transform: uppercase;
}
Disabling Auto-Numbering¶
If auto-numbering is enabled globally but you want to disable it for a specific page, set it to false in the page's front matter:
---
quiz:
auto_number: false
---