Removed illustration pre-processing(#1144)

This commit is contained in:
Rider21
2024-08-18 13:52:14 +03:00
committed by GitHub
parent 7e98a91ef6
commit eb5522b066
7 changed files with 3 additions and 46 deletions
-8
View File
@@ -100,14 +100,6 @@ class RNRF implements Plugin.PluginBase {
const chapter: string =
JSON.parse(jsonRaw[1])?.props?.pageProps?.chapter?.content?.text || '';
if (chapter.includes('<img')) {
return chapter.replace(/src="(.*?)"/g, (match, url) => {
if (!url.startsWith('http')) {
return `src="${this.site}${url}"`;
}
return `src="${url}"`;
});
}
return chapter;
}