Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
4 tasks done
steve02081504 opened this issue Dec 22, 2024 · 2 comments
Closed
4 tasks done

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

steve02081504 opened this issue Dec 22, 2024 · 2 comments
Labels
🙋 no/question This does not need any changes 👎 phase/no Post cannot or will not be acted on

Comments

@steve02081504
Copy link

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

@github-actions github-actions bot added 👋 phase/new Post is being triaged automatically 🤞 phase/open Post is being triaged manually and removed 👋 phase/new Post is being triaged automatically labels Dec 22, 2024
@ChristianMurphy
Copy link
Member

Math blocks work like code blocks.
They are expected to be on newline by themselves.

There is a more technical explanation in the syntax guide.
https://github.com/micromark/micromark-extension-math#syntax

@ChristianMurphy ChristianMurphy closed this as not planned Won't fix, can't repro, duplicate, stale Dec 22, 2024

This comment has been minimized.

@ChristianMurphy ChristianMurphy added the 🙋 no/question This does not need any changes label Dec 22, 2024
@github-actions github-actions bot added 👎 phase/no Post cannot or will not be acted on and removed 🤞 phase/open Post is being triaged manually labels Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🙋 no/question This does not need any changes 👎 phase/no Post cannot or will not be acted on
Development

No branches or pull requests

2 participants