-
-
Notifications
You must be signed in to change notification settings - Fork 876
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
An error occurs with certain text when using remarkMath
and rehypeKatex
.
#853
Comments
remarkMath
and rehypeKatex
.
This looks like a KaTeX problem, why not raise it with KaTeX? Why raise it here? Do you think there is something to change here? |
@wooorm const file = await unified()
.use(remarkParse)
.use(remarkMath)
.use(remarkRehype)
.use(rehypeKatex)
.use(rehypeStringify)
.process(`$\\begin\\ca$`) |
Cannot reproduce: import {unified} from 'unified'
import remarkParse from 'remark-parse'
import remarkMath from 'remark-math'
import remarkRehype from 'remark-rehype'
import rehypeKatex from 'rehype-katex'
import rehypeStringify from 'rehype-stringify'
const file = await unified()
.use(remarkParse)
.use(remarkMath)
.use(remarkRehype)
.use(rehypeKatex)
.use(rehypeStringify)
.process(`$\\begin\\ca$`)
console.log(String(file))
As in: there’s definitely a KaTeX error, when using the latest dependencies otherwise. Now, |
@wooorm |
OK, if you believe that math input to be valid for KaTeX. I’ll also work on a fix in |
In
So could be that that is the root problem |
Initial checklist
Affected packages and versions
react-markdown:9.0.1
Link to runnable example
No response
Steps to reproduce
Expected behavior
It should render the markdown text correctly.
Actual behavior
�Following error occurs.
Runtime
Other (please specify in steps to reproduce)
Package manager
Other (please specify in steps to reproduce)
OS
macOS
Build and bundle tools
Vite
The text was updated successfully, but these errors were encountered: