Skip to content

Feature Request: Add LaTeX parsing for math and scientific equations #1

@DEVOLOPER-1

Description

@DEVOLOPER-1

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions