Răsfoiți Sursa

BugFix: decodeURI

Yuki Takei 3 ani în urmă
părinte
comite
d6bbf5b098
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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));
     });
   };
 };