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

[Bug] Cannot parse \$ and line break $$ syntax #101

Closed
4 tasks done
zhuozhiyongde opened this issue Oct 27, 2024 · 2 comments
Closed
4 tasks done

[Bug] Cannot parse \$ and line break $$ syntax #101

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

Comments

@zhuozhiyongde
Copy link

zhuozhiyongde commented Oct 27, 2024

Initial checklist

Affected packages and versions

"rehype-katex": "^7.0.0"; "remark-math": "^6.0.0"

Link to runnable example

No response

Steps to reproduce

$ \$ $
$$ \begin{aligned}
\log p(x) &= \log \int p(x|z)p(z)dz \\
&= \log \int \frac{q(z|x)}{q(z|x)}p(x|z)p(z)dz \\
&\geq \int q(z|x)\log\frac{p(x|z)p(z)}{q(z|x)}dz \\
&= \mathbb{E}_{q(z|x)}[\log p(x|z)] - D_{KL}(q(z|x)||p(z)) \\
&= \text{ELBO}
\end{aligned} $$

Expected behavior

image

Actual behavior

LobeChat 2024-10-27 12 07 07

Affected runtime and version

[email protected]

Affected package manager and version

[email protected]

Affected OS and version

macOS Sonoma

Build and bundle tools

Vite, Next.js

@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 Oct 27, 2024
@zhuozhiyongde zhuozhiyongde changed the title [Bug] Cannot parse \$ and line break $$ Syntax [Bug] Cannot parse \$ and line break $$ syntax Oct 27, 2024
@wooorm
Copy link
Member

wooorm commented Oct 28, 2024

It works like code:

$$ \$ $$

$$
asd
asd
asdasd
asd
$$

See the readme for more on how this project works: https://github.com/remarkjs/remark-math/tree/main/packages/remark-math

@wooorm wooorm closed this as not planned Won't fix, can't repro, duplicate, stale Oct 28, 2024

This comment has been minimized.

@wooorm wooorm added the 🙋 no/question This does not need any changes label Oct 28, 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 Oct 28, 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