We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fc1a9a commit f37621dCopy full SHA for f37621d
src/package.ts
@@ -779,7 +779,7 @@ export abstract class MarkdownProcessor extends BaseProcessor {
779
780
// Replace <img> links with urls
781
contents = contents.replace(/<(?:img|video)[^>]+src=["']([/.\w\s#-]+)['"][^>]*>/gm, (all, link) => {
782
- const isLinkRelative = !/^\w+:\/\//.test(link) && link[0] !== '#';
+ const isLinkRelative = !/^\w+:\/\//.test(link) && link[0] !== '#' && !link.startsWith('data:');
783
784
if (!this.baseImagesUrl && isLinkRelative) {
785
throw new Error(
0 commit comments