Explorar o código

BugFix: decodeURI

Yuki Takei %!s(int64=3) %!d(string=hai) anos
pai
achega
d6bbf5b098
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/remark-lsx/src/services/renderer/lsx.ts

+ 1 - 1
packages/remark-lsx/src/services/renderer/lsx.ts

@@ -104,7 +104,7 @@ export const rehypePlugin: Plugin<[LsxRehypePluginParams]> = (options = {}) => {
       }
 
       // resolve relative path
-      lsxElem.properties.prefix = pathResolver(prefix, basePagePath);
+      lsxElem.properties.prefix = decodeURI(pathResolver(prefix, basePagePath));
     });
   };
 };