-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
Cannot read properties of undefined (reading 'mathFlowInside') #89
Comments
Looks like Nextra ran into this issue too:
|
@twobit your |
This comment has been minimized.
This comment has been minimized.
That should work. You probably use something else too? |
I have the following (it's an Astro site): "rehype-katex": "^7.0.0",
"rehype-mathjax": "^5.0.0",
"rehype-slug": "^6.0.0",
"remark": "^15.0.1",
"remark-math": "^6.0.0",
"remark-mdx": "^2.3.0",
...
"@astrojs/mdx": "^1.1.2", With the following MDX file: ---
dates:
published: 2023-08-31T09:53:07+0000
---
Trying out maths rendering via markdown.
This is an inline *equation:* $$V_{sphere} = \frac{4}{3}\pi r^3$$, followed by a display style equation after lots more lines of paragraph to test vertical alignment of inline expressions as well as the standalone expressions.
Here is also some **styled text**.
This is another inline expression $$\sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6}$$ followed by a normal expression, which align to the ___middle___ of the content:
$$ And the following setup: export default defineConfig({
markdown: {
remarkPlugins: [remarkMath],
},
integrations: [
astroExpressiveCode({
theme: 'light-plus',
styleOverrides: {
borderRadius: () => '0',
},
frames: {
styleOverrides: {
frameBoxShadowCssValue: 'none',
},
},
}),
preact({
include: ['**/preact/*'],
}),
react({
include: ['**/react/*'],
}),
mdx({
rehypePlugins: [
[rehypeSlug],
[rehypeMathJax],
],
}),
],
}); |
Thanks for providing more info. |
Unfortunately I believe remark-gfm is brought in by Astro |
I’d assume they have a working version? |
I also had this issue until I used this tutorial : https://ileumas.com/writing/2022/03/astro-math-katex/ This is my astro.config.js :
|
The As for |
Astro is currently on |
更新了 @astrojs/rss @astrojs/sitemap astro giscus rehype-mathjax remark-join-cjk-lines sanitize-html remark-math 暂未更新:remarkjs/remark-math#89 (comment) fix: 将 feed.xml.js 中 get 重命名为 GET
- Update langchain to fix thoughts not appearing issue - Switch to regular HTML Loader instead of playwright for simplicity and performance - Update search prompt to fix citation formatting issues - Downgrade remark to prevent Math rendering error (source: remarkjs/remark-math#89)
Had this same issue today even with both math modules on latest major versions (using alongside Also had to put in a Downgrading feels like it's stepping around the issue(s), seems like others here have the same confusion 👉 What's the proper way to fix? Update GFM? Something else I'm missing? |
@iwasrobbed reading the thread would help. Locking this thread as resolved "same" follow up comments don't add anything. |
Initial checklist
Affected packages and versions
remark-math@6
Link to runnable example
No response
Steps to reproduce
Using block LaTeX formatting causes an error:
Expected behavior
Block LaTeX formatting should be supported.
Actual behavior
Runtime
Node v17
Package manager
npm 8
OS
macOS
Build and bundle tools
Next.js
The text was updated successfully, but these errors were encountered: