Skip to content

Commit

Permalink
conditionally use the old or new ticked ballot symbol name
Browse files Browse the repository at this point in the history
  • Loading branch information
SillyFreak committed Oct 10, 2024
1 parent d098ebd commit cec77ed
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/task-kinds/choice.typ
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@
show: move.with(dy: -0.1em)
set text(1.5em)
solution.answer(
if correct { sym.ballot.x } else { sym.ballot },
if not correct {
sym.ballot
} else if sys.version < version(0, 12, 0) {
sym.ballot.x
} else {
sym.ballot.cross
},
placeholder: sym.ballot,
)
})
Expand Down

0 comments on commit cec77ed

Please sign in to comment.