Export quiz markdown to Anki, Flashcard Hero, HTML
Convert quiz markdown to Anki CSV, Flashcard Hero TSV, or interactive HTML quiz pages. Use when exporting study materials to flashcard apps or creating self-contained web quizzes.
/plugin marketplace add dnvriend/markdown-quiz-exporter-tool/plugin install markdown-quiz-exporter-tool@markdown-quiz-exporter-toolThis skill inherits all available tools. When active, it can use any tool Claude has access to.
The markdown-quiz-exporter-tool is a CLI tool that exports quiz markdown files to multiple formats including Anki CSV, Flashcard Hero TSV, and interactive HTML quiz pages. It supports single-choice and multiple-choice questions with explanations.
Use this skill when:
Do NOT use this skill for:
A command-line utility for exporting quiz markdown files to multiple formats with comprehensive validation and error handling.
# Clone repository
git clone https://github.com/dnvriend/markdown-quiz-exporter-tool.git
cd markdown-quiz-exporter-tool
# Install with uv
uv tool install .
# Verify installation
markdown-quiz-exporter-tool --version
# Export to Flashcard Hero
markdown-quiz-exporter-tool flashhero quiz.md flashcards.tsv
# Export to Anki (quiz format)
markdown-quiz-exporter-tool anki quiz.md cards.csv
# Generate HTML quiz
markdown-quiz-exporter-tool quiz-html quiz.md quiz.html --title "My Quiz"
Export quiz markdown to Flashcard Hero TSV format with tab-separated question/answer pairs.
Usage:
markdown-quiz-exporter-tool flashhero INPUT_FILE OUTPUT_FILE [OPTIONS]
Arguments:
INPUT_FILE: Path to quiz markdown file (*.md)OUTPUT_FILE: Path where TSV file will be written (*.tsv)--force / -f: Overwrite output file if it exists-v/-vv/-vvv: Verbosity levels (INFO/DEBUG/TRACE)Examples:
# Basic export
markdown-quiz-exporter-tool flashhero quiz.md flashcards.tsv
# Overwrite existing file
markdown-quiz-exporter-tool flashhero quiz.md flashcards.tsv --force
# With verbose output for debugging
markdown-quiz-exporter-tool flashhero quiz.md flashcards.tsv -vv
Output Format:
Question<TAB>Answer
Question<TAB>Answer1; Answer2; Answer3
For questions with multiple correct answers, they are joined with "; " separator.
Export quiz markdown to Anki CSV format supporting two note types: AllInOne (quiz) and Basic (recall).
Usage:
markdown-quiz-exporter-tool anki INPUT_FILE OUTPUT_FILE [OPTIONS]
Arguments:
INPUT_FILE: Path to quiz markdown file (*.md)OUTPUT_FILE: Path where CSV file will be written (*.csv)--quiz: Export as AllInOne quiz format (default)--recall: Export as Basic recall format--force / -f: Overwrite output file if it exists-v/-vv/-vvv: Verbosity levels (INFO/DEBUG/TRACE)Examples:
# Export as quiz format (default)
markdown-quiz-exporter-tool anki quiz.md quiz-cards.csv
# Export as recall format
markdown-quiz-exporter-tool anki quiz.md recall-cards.csv --recall
# Overwrite existing file
markdown-quiz-exporter-tool anki quiz.md cards.csv --force
# With verbose output
markdown-quiz-exporter-tool anki quiz.md cards.csv -vv
Output Formats:
AllInOne (--quiz):
Question;Title;QType;Q_1;Q_2;Q_3;Q_4;Q_5;Answers;Sources;Extra1;Tags
Basic (--recall):
Front;Back;Tags
Note: AllInOne format supports maximum 5 answer options. Questions with more than 5 options will have only the first 5 included.
Generate self-contained HTML quiz page with embedded CSS, JavaScript, and quiz data.
Usage:
markdown-quiz-exporter-tool quiz-html INPUT_FILE OUTPUT_FILE --title "TITLE" [OPTIONS]
Arguments:
INPUT_FILE: Path to quiz markdown file (*.md)OUTPUT_FILE: Path where HTML file will be written (*.html)--title "TITLE": Quiz title displayed on intro page (required)--force / -f: Overwrite output file if exists-v/-vv/-vvv: Verbosity levels (INFO/DEBUG/TRACE)Examples:
# Generate quiz HTML
markdown-quiz-exporter-tool quiz-html quiz.md quiz.html --title "My Quiz"
# Overwrite existing file
markdown-quiz-exporter-tool quiz-html quiz.md quiz.html --title "Quiz" --force
# With verbose output
markdown-quiz-exporter-tool quiz-html quiz.md quiz.html --title "Quiz" -vv
Features:
Output: Self-contained HTML file (typically 30-50 KB) containing:
Quiz markdown files must follow this format:
Question text here?
- (X) Correct answer
- ( ) Wrong answer 1
- ( ) Wrong answer 2
# reason
Explanation text here with markdown support.
Can include **bold**, *italic*, and other markdown features.
---
Another question?
- [X] Correct answer 1
- [X] Correct answer 2
- [ ] Wrong answer
# reason
Explanation for multiple choice question.
---
## header needed)( ) for incorrect, (X) for correct (radio buttons)[ ] for incorrect, [X] for correct (checkboxes)# reason header followed by explanation text--- between questions( ) and (X) notation[ ] and [X] notationQuestions can include category prefixes (used by HTML quiz for badges):
CATEGORY: Question text?
This will:
Example:
S3: What is the max size of an S3 object in GB?
- ( ) 1000
- (X) 5000
- ( ) 10000
# reason
The maximum size is 5TB or 5000GB.
---
</details>
<details>
<summary><strong>⚙️ Advanced Features (Click to expand)</strong></summary>
Configuration Page:
Question Page:
Statistics Page:
Review Mode:
Dark/Light Mode:
State Persistence:
Control output detail with -v flags:
# Default: Warnings only
markdown-quiz-exporter-tool anki quiz.md output.csv
# INFO: High-level operations
markdown-quiz-exporter-tool anki quiz.md output.csv -v
# DEBUG: Detailed debugging
markdown-quiz-exporter-tool anki quiz.md output.csv -vv
# TRACE: Library internals
markdown-quiz-exporter-tool anki quiz.md output.csv -vvv
By default, commands fail if output file exists:
# Fails if output.csv exists
markdown-quiz-exporter-tool anki quiz.md output.csv
# Overwrites without confirmation
markdown-quiz-exporter-tool anki quiz.md output.csv --force
</details>
<details>
<summary><strong>🔧 Troubleshooting (Click to expand)</strong></summary>
Issue: "Error: Quiz file not found"
Error: Quiz file not found: quiz.md
Solution:
ls -la quiz.mdIssue: "Error parsing quiz file"
Error parsing quiz file: Invalid question format
Solution:
## question headers- [ ] or - [x] format--- separators between questions-vv for detailed parse errorsIssue: "Output file already exists"
Error: Output file 'output.csv' already exists. Use --force to overwrite.
Solution:
--force flag to overwriteIssue: "Questions exceed 5-option limit"
Warning: 3 question(s) have more than 5 answer options.
Only the first 5 will be included in AllInOne format.
Solution:
--recallIssue: "HTML quiz not displaying correctly"
Symptoms:
Solution:
Issue: "Markdown not rendering in quiz explanation"
Solution:
marked.js loaded (check browser console)# Main help
markdown-quiz-exporter-tool --help
# Command-specific help
markdown-quiz-exporter-tool flashhero --help
markdown-quiz-exporter-tool anki --help
markdown-quiz-exporter-tool quiz-html --help
# Version information
markdown-quiz-exporter-tool --version
# Shell completion
markdown-quiz-exporter-tool completion bash
markdown-quiz-exporter-tool completion zsh
</details>
0: Success1: Error (file not found, parse error, write error, etc.)Flashcard Hero TSV:
Anki AllInOne CSV:
Anki Basic CSV:
HTML Quiz:
-vv when debugging to see detailed error messages--force carefully to avoid overwriting important files