Skip to main content

Canvas-markdown-quiz

Add markdown support for Canvas LMS quizzes.

Features

  • Markdown parsing
  • Latex Rendering (using Upmath as backend)
  • One markdown file per quiz

Quick Start

Markdown Writing

Following test_quiz.md, create your own quiz markdown file, like quiz1.md.

The structure of this md file should be like this:

---
(Some quiz configs)
---

# Your Title

(Your description)

---

(Block 1)

---

(Block 2)

---

...

---

(Block n)

Quiz config should be formatted as YAML, and the options are available at this page. You don't have to set title and description parameter in this config.


Each block is a question, and it should be like this:

---

```yaml
question_type: multiple_choice_question
points_possible: 1
answers:
    -
        answer_text: "Option 1"
        answer_weight: 100
    -
        answer_text: "Option 2"
        answer_weight: 0
```

Question description goes here.

```cpp
#include <stdio.h>

int main(){
    printf("Hello World!");
}
```
---

Quiz question config should be formatted as YAML, and the options are available at this page. You don't have to set the text parameter in this config.

Installation

  1. Install canvas-markdown-quiz
# using pip for python
pip install canvas-markdown-quiz

# using pip3 for python3
pip3 install canvas-markdown-quiz

Note: If you cannot install canvasapi, please check your network connection. We recommend you to use Tsinghua mirror in the mainland of China.

  1. Run command

Open your project directory, and type the following command to run.

For the first time, it will ask you some questions to save the configuration file.

cvs-makequiz <md filename>

Snapshot

Metadata

Release files for canvas-markdown-quiz 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for canvas-markdown-quiz 0.3.0
File Size Uploaded
canvas-markdown-quiz-0.3.0.tar.gz 6.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for canvas-markdown-quiz 0.3.0
File Interpreter ABI Platform
canvas_markdown_quiz-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.8 kB

Release files / canvas-markdown-quiz-0.3.0.tar.gz

Download URL canvas-markdown-quiz-0.3.0.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
3f6e3e7fc2241be3698ea695959a5bd2211d338bef15be74b51a2045a506c424
BLAKE2b-256 checksum
How to use checksums
52b1c9f2e5bdd0265a649452bf11bce76c7d3e964ac1a5b37e5e7723447368c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.7

Release files / canvas_markdown_quiz-0.3.0-py3-none-any.whl

Download URL canvas_markdown_quiz-0.3.0-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b3fda64d972461cfa680e21ff43d9121298ad2d8a2f23e6b41ce177cb4038737
BLAKE2b-256 checksum
How to use checksums
740aecc1228702bad1c212ee03c1a62f3c935e65e791ad2e6a5855df08a61a20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.7

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page