Description
Currently, the QUANTA exam engine only supports plain text in the question, option, and explanation fields. To better support STEM exams (Data Science, Math, Physics), we need the ability to parse and beautifully render LaTeX equations directly from the questions.csv file.
Expected Behavior
When the exam engine reads a string wrapped in standard LaTeX delimiters—such as $E=mc^2$ for inline equations or $$ for block equations—it should automatically render them into formatted mathematical script in the UI.
Current Behavior
LaTeX equations are rendered as raw, unformatted text strings (e.g., \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}).
Proposed Solution
Integrate KaTeX (preferred for its speed and lightweight footprint compared to MathJax). Since the goal of QUANTA is to remain a single-file, self-contained app, we can inject the KaTeX CSS and JS via CDN, falling back to raw text if the user is completely offline.
Description
Currently, the QUANTA exam engine only supports plain text in the
question,option, andexplanationfields. To better support STEM exams (Data Science, Math, Physics), we need the ability to parse and beautifully render LaTeX equations directly from thequestions.csvfile.Expected Behavior$E=mc^2$ for inline equations or
When the exam engine reads a string wrapped in standard LaTeX delimiters—such as
$$for block equations—it should automatically render them into formatted mathematical script in the UI.Current Behavior
LaTeX equations are rendered as raw, unformatted text strings (e.g.,
\frac{-b \pm \sqrt{b^2 - 4ac}}{2a}).Proposed Solution
Integrate KaTeX (preferred for its speed and lightweight footprint compared to MathJax). Since the goal of QUANTA is to remain a single-file, self-contained app, we can inject the KaTeX CSS and JS via CDN, falling back to raw text if the user is completely offline.