View source: R/make_html_dropdown.R
Create substitute text for a cloze answer
1 2 3 4 5 6 7 | sub_cloze_answer(
ans_num,
check_var,
sub_text = "<span>______</span>",
cloze_fmt = "\\#\\#ANSWER%s\\#\\#",
cat = FALSE
)
|
ans_num |
cloze answer number |
check_var |
if an object with this name exists, the substitute text will be returned, otherwise the cloze answer is returned |
sub_text |
text to substitute for the cloze code |
cloze_fmt |
format for the cloze code |
cat |
whether or not to cat() the output |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.