We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 146bb4f commit b496e7cCopy full SHA for b496e7c
src/plugins/local-image.ts
@@ -14,7 +14,7 @@ export default function plugin(resolveUrl: (url: string) => string) {
14
(renderAttrs, token) => {
15
if (token.tag === 'img') {
16
const src = token.attrGet('src');
17
- if (src && !src.includes('://')) {
+ if (src && !/^[\w-]+:/.test(src)) {
18
token.attrSet('src', resolveUrl(src));
19
}
20
0 commit comments