
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
gitbook-plugin-mcqx
Advanced tools
Multiple Choice plugin for GitBook packed with interactive features
See the plugin at work here: Click Here
Syntax too complicated? Use the code generator in the plugin homepage.

This is a multiple choice plugin developed for GitBook, packed with interactive features including:
Another version of the plugin featuring analytics are also in the works. This version will not include this feature. It will be published as a separate plugin.
Syntax too complicated? Use the code generator in the plugin homepage.
Each multiple choice question has this basic syntax, they are not optional:
{%mcq ans="o1"%}
{%title%} This is a question?
{%o1%} First option
{%o2%} Second option
{%o3%} Third option
{%o4%} Fourth option
{%endmcq%}
The {%mcq%} tag (line 1) must have the following arguments for it to work:
ans: the id of correct option (possible values: o1,o2,o3,o4,o5,o6,o7,o8)The content of the multiple choice question is included in the book as a sub-block for the mcq tag (line 2 - 7).
title: question title (no markdown support for now).o1, o2, o3, o4, o5, o6, o7, o8: text for each options (you can include up to eight optio).You can add a {%hint%} sub-block to display a hint message. They will be shown when the user click the "Hint" button.
{%mcq ans="o1", count=2%}
{%title%} This is a question?
{%o1%} First option
{%o2%} Second option
{%o3%} Third option
{%o4%} Fourth option
{%hint%} This is a hint.
{%endmcq%}
You can add an optional count parameter to the ````{%mcq%}``` tag to show only a certain number of options.
{%mcq ans="o1", count=2%}
{%title%} This is a question?
{%o1%} First option
{%o2%} Second option
{%o3%} Third option
{%o4%} Fourth option
{%o5%} Fourth option
{%o6%} Fourth option
{%o7%} Fourth option
{%o8%} Fourth option
{%endmcq%}
In this case, only two options will be displayed for the user to choose (the correct answer will always be included). The order of the options will be random (no matter you set the random=true argument for not).
You can add an optional random=true parameter to the {%mcq%} tag to let the order of the options to be randomized.
{%mcq ans="o1", random=true%}
{%title%} This is a question?
{%o1%} First option
{%o2%} Second option
{%o3%} Third option
{%o4%} Fourth option
{%endmcq%}
FAQs
Multiple Choice plugin for GitBook packed with interactive features
We found that gitbook-plugin-mcqx demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.