Procházet zdrojové kódy

Merge pull request #7239 from weseek/fix/lsx-encode-pagepath-twice

fix: Lsx encode prefix twice
Yuki Takei před 3 roky
rodič
revize
1947773ea9

+ 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));
     });
   };
 };