You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using svg images inside my techdocs. I'd like to support the light & dark mode with help of mkdocs-material.
This leads to src attributes inside my techdocs like src="some-nice-image.svg#only-dark".
No problem so far until techdocs is changing the content-type for svg into text/plain' for security reason.
But the rewrite back to svg is failing because the src attribute doesn't end with svg 😢 .
👍 Expected behavior
It would be great, if the check will respect anchors in the url, inside of addBaseUrl.ts.
📜 Description
I'm using svg images inside my techdocs. I'd like to support the light & dark mode with help of mkdocs-material.
This leads to src attributes inside my techdocs like
src="some-nice-image.svg#only-dark"
.No problem so far until techdocs is changing the content-type for svg into
text/plain
' for security reason.But the rewrite back to svg is failing because the src attribute doesn't end with
svg
😢 .👍 Expected behavior
It would be great, if the check will respect anchors in the url, inside of addBaseUrl.ts.
Current implementation:
Something like this would solve the problem:
👎 Actual Behavior with Screenshots
Currently, the svg images aren't shown in the browser because the content type is wrong.
👟 Reproduction steps
📃 Provide the context for the Bug.
No response
🖥️ Your Environment
I don't believe this is needed for that issue.
👀 Have you spent some time to check if this bug has been raised before?
🏢 Have you read the Code of Conduct?
Are you willing to submit PR?
Yes I am willing to submit a PR!
The text was updated successfully, but these errors were encountered: