Mermaid v10.9.0 cannot be injected into Chrome browser extensions #5383
Labels
Status: Triage
Needs to be verified, categorized, etc
Type: Bug / Error
Something isn't working or is incorrect
Description
The introduction of Katex in v10.9.0 most likely introduced characters that are not encoded properly into the build.
When I try to inject Mermaid v10.9.0 into a Chrome browser extension I get the following error:
At first glance it looks like the file is indeed encoded with UTF-8, but when I tried to convert it using a tool available on Linux:
I got
At that position I found this character:
Then by removing it and running the command again, I found another one:
and so on.
Using an online converter to encode those characters I got:
µ
->µ
−
->�
This is preventing any Chromium based browser (anything except Firefox) to inject Mermaid v10.9.0, I tested with Chrome and Opera, Firefox does not complain about those characters.
Steps to reproduce
A simple Chrome extension can be created to reproduce this issue:
manifest.json
background.js
mermaid.min.js
Needs to be v10.9.0
This extension will try to inject
mermaid.min.js
into any page you visit.Screenshots
No response
Code Sample
No response
Setup
Suggested Solutions
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: