mdlist | R Documentation |
Create a markdown list for answer options
mdlist(vect, solutions = NULL, gaps = NULL)
vect |
A string or numeric vector of answer options for single/multiple choice task. |
solutions |
An integer value, optional; indexes of right answer options
in |
gaps |
numeric or string vector, optional; provides primitive gap description if there is a need to build a list of gaps. |
A markdown list.
gap_text()
, gap_numeric()
, dropdown()
#list for multiple choice task
mdlist(c("A", "B", "C"), c(2, 3))
# it returns:
#- A
#- *B*
#- *C*
#list of gaps
mdlist(c("A", "B", "C"), c(2, 3), c(1, 2, 3))
# it returns:
#- A <gap>1</gap>
#- *B* <gap>2</gap>
#- *C* <gap>3</gap>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.