Skip to content

katex parse error: \hline valid only within array environment #506

Description

@JadAbouHawili

The following used to work in a doc comment: /-- -/

$$
\begin{array}{|c c|c|}
\hline
P & Q & \text{P and Q} \\
\hline
T & T & T \\
T & F & F \\
F & T & F \\
F & F & F \\
\hline
\end{array}
$$

but now must be:

$$
\\begin{array}{|c|c|c|}
\\hline
x=2 & y=6 & x=2 ∧ y=6 \\\\
\\hline
T & T & T \\\\
\\hline
T & F & F \\\\
\\hline
F & T & F \\\\
\\hline
F & F & F \\\\
\\hline
\\end{array}
$$

The documentation currently says:
"
Generally, if you add text inside quotes " " (e.g. in Hint) you need to escape
backslashes, but if you provide text inside a doc comment
/-- -/ (e.g. in the Statement description) you do not!
"

Moreover , the escaped backslashes version does not work in Introduction and non-escaped backslashes would error with 'invalid escape sequence'. At a loss on what to do to make latex work in Introduction...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions