Anki url-encodes media references that it finds via a regex before displaying cards. Said regex mistakenly matches against my" + "Image.png and replaces it with my%22%20+%20%22Image.png
If the rust regex crate supported look-around assertions, it could have been modified to avoid looking in script tags perhaps
Is that url-encoding necessary? Because it seems that not doing it doesn’t cause any issues, even if I add spaces and special characters to the image name.
@llama I believe it’s a deliberate choice by the crate due to the potential performance issues. A “proper” implementation would use a parser instead of a regex, as there’ll always be corner cases like this.