LaTeX to JSON Converter

Convert problem, hint, and solution from LaTeX to JSON format

Metadata

LaTeX Input

JSON Output

Expected LaTeX Format:

\begin{problem}\label{prob:01Feb2026}
                Your problem text here with $math$ notation
                \end{problem}

                \begin{hint}
                Your hint (can use \begin{enumerate}\item...\end{enumerate})
                \end{hint}

                \begin{solution}
                Solution paragraphs separated by \vspace{0.3cm}
                \noindent (will be ignored)
                More content...
                \end{solution}

MCQ Format (optional, goes inside \begin{problem}):

\begin{problem}
                Question text with $math$...
                \begin{mcq}
                \item First option text
                \item Second option text
                \item Third option text
                \item Fourth option text
                \end{mcq}
                \correctanswer{a}
                \end{problem}

Both \begin{mcq}...\end{mcq} and \correctanswer{} are stripped out of the rendered problem text and instead exported as isMcq, options, and correctAnswer fields in the JSON, so the answer never leaks into the problem HTML.

Quote / Remark Format (works in problem, hint, or solution):

\begin{quote}
                Plain quoted text, rendered as an indented italic blockquote.
                \end{quote}

                \begin{quote}[Remark]
                Text with a heading, rendered as a bordered box titled "Remark".
                \end{quote}

Recognized labels (case-insensitive) get their own color: Remark/Note (blue), Warning/Caution (amber), Theorem (emerald), Lemma/Proposition (indigo), Corollary (purple), Definition (teal), Example (violet). Any other label still renders the box, just in the default slate style.