markdown-viewer
markdown-viewer copied to clipboard
Turning on MathJax "Accessibility -> Activate" option will lead to the crash of Edge browser
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
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:
- Disable the MathJax option in Markdown Viewer - you can do it on any page as the options popup is available always
- Navigate back to the same local file that you were looking at before the browser crashed
- Open up the DevTools and navigate to the Application tab
- Find the MathJax related setting stored in Local Storage and delete it
- Refresh page and re-enable MathJax
Thanks for reporting this issue.
It worked! Thanks for helping me solve this problem. This extension is very helpful to me.👍