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

[Nuxt MDC] reading 'mathFlowInside' undefined when parsing a multi-line formula #91

Closed
4 tasks done
Sun-ZhenXing opened this issue Nov 6, 2023 · 4 comments
Closed
4 tasks done
Labels
👀 no/external This makes more sense somewhere else 👎 phase/no Post cannot or will not be acted on

Comments

@Sun-ZhenXing
Copy link

Initial checklist

Affected packages and versions

[email protected]

Link to runnable example

https://stackblitz.com/edit/nuxt-starter-9lhesd?file=README.md

Steps to reproduce

I'm trying to use @nuxtjs/mdc, which is a similar technology to MDX.

I think this is a bug in remark-math, not Nuxt MDC.


Repo: https://stackblitz.com/edit/nuxt-starter-9lhesd?file=README.md.

Steps: Input $123$ or $$123$$ work well, but got error when entering a multi-line formula.

e.g:

$$
123
$$

Expected behavior

No error.

Actual behavior

Error:

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'mathFlowInside')
    at Object.exitMathFlowFence (remark-math.js?v=49db5ce9:140:19)
    at compile (index.js?v=49db5ce9:363:40)
    at fromMarkdown (index.js?v=49db5ce9:193:31)
    at parser (index.js?v=49db5ce9:18:12)
    at Function.parse (index.js?v=49db5ce9:668:12)
    at executor (index.js?v=49db5ce9:734:40)
    at new Promise (<anonymous>)
    at Function.process (index.js?v=49db5ce9:720:47)
    at parseMarkdown (index.mjs?v=49db5ce9:35:41)
    at async main (app.vue:6:15)

Runtime

Other (please specify in steps to reproduce)

Package manager

Other (please specify in steps to reproduce)

OS

Other (please specify in steps to reproduce)

Build and bundle tools

Vite

@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 Nov 6, 2023
@Sun-ZhenXing Sun-ZhenXing changed the title [Nuxt MDC] An error occurs when parsing a multi-line formula [Nuxt MDC] reading 'mathFlowInside' undefined when parsing a multi-line formula Nov 6, 2023
@wooorm
Copy link
Member

wooorm commented Nov 6, 2023

Report this with nuxt: they should update there tools.
Or downgrade our packages for now

@wooorm wooorm closed this as completed Nov 6, 2023
@wooorm wooorm added the 👀 no/external This makes more sense somewhere else label Nov 6, 2023

This comment has been minimized.

@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 Nov 6, 2023
@Sun-ZhenXing
Copy link
Author

Thanks, I will report this issue to Nuxt.

@wokalek
Copy link

wokalek commented Nov 27, 2023

I have the same issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👀 no/external This makes more sense somewhere else 👎 phase/no Post cannot or will not be acted on
Development

No branches or pull requests

3 participants