webexercises icon indicating copy to clipboard operation
webexercises copied to clipboard

empty values for option names

Open debruine opened this issue 3 years ago • 0 comments

Give all options a default non-empty name if the name isn't set to "answer" so that the resulting HTML is technically correct. Options without values trigger an HTML warning that makes epubs impossible to render.

Triggers an error when rendering as epub:

mcq(c(answer = "TRUE", "FALSE"))

Does not trigger an error:

mcq(c(answer = "TRUE", x="FALSE"))

debruine avatar Sep 15 '21 21:09 debruine