diff --git a/plugins/french/novelfrance.ts b/plugins/french/novelfrance.ts index fea0fe8ca..75e45dafc 100644 --- a/plugins/french/novelfrance.ts +++ b/plugins/french/novelfrance.ts @@ -59,7 +59,7 @@ class NovelFrancePlugin implements Plugin.PluginBase { name = 'NovelFrance'; icon = 'src/fr/novelfrance/icon.png'; site = 'https://novelfrance.fr/'; - version = '1.0.1'; + version = '1.0.2'; private async fetchJson(url: string): Promise { const r = await fetchApi(url); @@ -192,7 +192,8 @@ class NovelFrancePlugin implements Plugin.PluginBase { .replace(//g, '>') .replace(/"/g, '"') - .replace(/'/g, '''); + .replace(/'/g, ''') + .replace(/<(\/?)(i|em|b|strong|u)>/gi, '<$1$2>'); } async parseChapter(chapterPath: string): Promise { @@ -209,7 +210,11 @@ class NovelFrancePlugin implements Plugin.PluginBase { if (!content) continue; // Si le paragraphe d'index 0 est une répétition exacte du titre du chapitre, on l'ignore - if (title && p.index === 0 && content.toLowerCase() === title.trim().toLowerCase()) { + if ( + title && + p.index === 0 && + content.toLowerCase() === title.trim().toLowerCase() + ) { continue; }