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] TypeError: Converting circular structure to JSON #1853

Closed
Dlg15 opened this issue Oct 22, 2023 · 5 comments
Closed

[BUG] TypeError: Converting circular structure to JSON #1853

Dlg15 opened this issue Oct 22, 2023 · 5 comments
Assignees
Labels

Comments

@Dlg15
Copy link

Dlg15 commented Oct 22, 2023

Describe the bug
After installing the plugin, the following error appears:

TypeError: Converting circular structure to JSON --> starting at object with constructor 'Object' | property '\df@tag' -> object with constructor 'Object' | property 'tokens' -> object with constructor 'Array' | ... | property 'settings' -> object with constructor 'zN' --- property 'macros' closes the circle

Environment

  • OS: Windows 10
  • VSCode: 1.82.0
  • Markdown Preview Enhanced: 0.8.8

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Markdown file
Please attach the markdown file that can reproduce the bug.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

@Kariiboo
Copy link
Contributor

Kariiboo commented Oct 22, 2023

Hello. I have a similar problem that seems linked to the use of \nonumber in a math expression in a .md file.

Here after some details to reproduce :

  • From an empty .md file, open preview to the side.
  • Add in a ````math ` section
$$\begin{align} \nonumber A = B + C \end{align}$$

The rendering is OK

  • Save the file.
  • Close VSCode
  • Open VSCode, open the .md file.
  • open preview to the side. I have the error message.
    TypeError: Converting circular structure to JSON --> starting at object with constructor 'Object' | property '\@eqnsw' -> object with constructor 'Object' | property 'tokens' -> object with constructor 'Array' | ... | property 'settings' -> object with constructor 'zN' --- property 'macros' closes the circle

@shd101wyy
Copy link
Owner

Hi there. Are you using KaTeX or MathJax for rendering the math?

@Kariiboo
Copy link
Contributor

Hi !
I use KaTex.
image

When I switch for MathJax, the rendering is OK.

@shd101wyy
Copy link
Owner

Thanks for the details. I will look into the katex issue.

@shd101wyy
Copy link
Owner

Okay this bug should be fixed now in 0.8.9. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants