diff --git a/lib/readResources.js b/lib/readResources.js index d167a9c7..9ec32c96 100644 --- a/lib/readResources.js +++ b/lib/readResources.js @@ -133,7 +133,7 @@ function readFile(object, uri, saveResourceId, options) { let absoluteUrl; try { absoluteUrl = new URL( - uri, + uri.replace("#", "%23"), hasResourceDirectory ? pathToFileURL(resourceDirectory) : undefined ); } catch (error) {