Skip to content

rehype-katex: can't hanlde \end{cases}$$ #105

@steve02081504

Description

@steve02081504

Initial checklist

Affected package

rehype-katex

Steps to reproduce

code: https://github.com/steve02081504/fount/blob/0183423e52859c93fa26b910028f43a9e8380365/src/public/scripts/markdown.mjs#L32
not work:

$$\begin{cases}
h(0) = 0 \\
h'(0) = 1
\end{cases}$$

works:

$$
\begin{cases}
h(0) = 0 \\
h'(0) = 1
\end{cases}
$$

Actual behavior

not work: ParseError: KaTeX parse error: Expected 'EOF', got '\end' at position 23: …0 \\ h'(0) = 1 \̲e̲n̲d̲{cases}$$

Expected behavior

should work

Runtime

firefox dev

Package manager

No response

Operating system

No response

Build and bundle tools

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    👎 phase/noPost cannot or will not be acted on🙋 no/questionThis does not need any changes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions