You can try using latex instead.

In the algorithm section write

$ansmathml1 = "\left(-\infty, \dfrac{1}{6}\right]"; $ansmathml2 = "\left(-\infty, \dfrac{1}{6}\right)";Then in the answer boxes put for example

\( $ansmathml1 \)Here is the result.

Question Creation