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

Turning on MathJax "Accessibility -> Activate" option will lead to the crash of Edge browser #228

Open
AshGreyG opened this issue Jan 20, 2024 · 2 comments
Labels

Comments

@AshGreyG
Copy link

AshGreyG commented Jan 20, 2024

The problem happened when I right clicked the rendered formulas and turned on the "Activate" option, then the page got stuck. I tried the measures below:

  • Closed the Edge browser and used it to open the markdown file again, it was still stuck and the Edge browser crashed;
  • Deleted the markdown-viewer extension and redownloaded it, but when I turned on the MathJax render option in this extension, the same problem happened.

I thought it may be the problem of MathJax, but when I right clicked the rendered formulas and turned on the "Activate" option in other website, it worked and didn't cause the crash of Edge browser.

The information of my Edge browser is:

  • 120.0.2210.144 (x64)
  • cbca972d5981c891b73744a5735a810417a3e9d6
  • Chromium version | 120.0.6099.234
  • System | Windows 11 Version 22H2 (Build 22621.2715)
  • JavaScript | V8 12.0.12.11
    Screenshot 2024-01-20 150712
    Screenshot 2024-01-20 150819
    Screenshot 2024-01-20 151759
@AshGreyG AshGreyG changed the title Turning on MathJax "Acitivate" option will lead to the crash of Edge browser Turning on MathJax "Activate" option will lead to the crash of Edge browser Jan 20, 2024
@simov
Copy link
Owner

simov commented Jan 20, 2024

I was able to reproduce it in Edge on Linux. It is a strange bug indeed, but it is most likely caused by that MathJax feature not being bundled with the extension. I had to trim the MathJax package as it is really large, but some of these menu entries remained there for things that I did not bundle with the extension, like the Accessibility -> Activate feature.

I will be looking at that issue for the next release of Markdown Viewer, but here is what you can do in the meantime:

  1. Disable the MathJax option in Markdown Viewer - you can do it on any page as the options popup is available always
  2. Navigate back to the same local file that you were looking at before the browser crashed
  3. Open up the DevTools and navigate to the Application tab
  4. Find the MathJax related setting stored in Local Storage and delete it

image

  1. Refresh page and re-enable MathJax

Thanks for reporting this issue.

@simov simov added the bug label Jan 20, 2024
@simov simov changed the title Turning on MathJax "Activate" option will lead to the crash of Edge browser Turning on MathJax "Accessibility -> Activate" option will lead to the crash of Edge browser Jan 20, 2024
@AshGreyG
Copy link
Author

It worked! Thanks for helping me solve this problem. This extension is very helpful to me.👍

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

2 participants