在页面中添加测验功能

添加quiz插件

在book.json中添加如下内容:

{
    "plugins": ["quiz"]
}

运行gitbook install

设置插件配置信息

        "quiz": {
            "labels": {
                "check": "提交答案",
                "showExplanation": "显示解释",
                "showCorrect": "显示正确答案",
                "explanationHeader": "释义"
            },
            "text": {
                "noChosen": "Choose at least one answer",
                "incomplete": "Some correct answers are missing"
            },
            "buttons": {
                "showCorrect": true,
                "showExplanation": true
            }
        }

在md文件中插入quiz

What is gitbook used for?

To read books To book hotel named git To write and publish beautiful books GitBook.com lets you write, publish and manage your books online as a service.

Is it quiz?

Yes No

This is multiple dropdown quiz, in each dropdown select a correct number corresponding to the dropdown's order

results matching ""

    No results matching ""