Skip to content

Options do not render LaTeX formulas in quiz cards #587

Description

@ZhouJ-sh

Summary

Multiple-choice option text in generated quiz cards can display raw LaTeX source instead of rendered math.

Current behavior

In the unified chat quiz card, the question stem renders LaTeX correctly, but answer options show escaped/source text such as raw inline math delimiters and commands. Examples include (1), (x\ne -3,0,3), and (\dfrac{x-3}{x}).

This is visible in the option rows (A/B/C/D), while the same card body renders math formulas correctly.

Expected behavior

LaTeX contained in option labels should be rendered the same way as LaTeX in the question body, so students see formatted math rather than source markup.

Reproduction context

  1. Start the web app and open the unified chat UI.
  2. Generate or view a multiple-choice math question whose answer options contain inline LaTeX.
  3. Observe that option rows display raw LaTeX delimiters and commands instead of rendered math.

Impact

This makes math answer choices hard to read and can obscure the intended answer, especially for expressions with fractions, inequalities, or excluded values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions