simov / markdown-viewer

Markdown Viewer / Browser Extension
MIT License
1.01k stars 131 forks source link

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

Open AshGreyG opened 5 months ago

AshGreyG commented 5 months ago

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:

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:

simov commented 5 months ago

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.

AshGreyG commented 5 months ago

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