From dd8b24aa38469645b71a3f154fd97fcfeb211697 Mon Sep 17 00:00:00 2001 From: RAHARINOSY Rindra Fitahiana <156527673+Katsuexe@users.noreply.github.com> Date: Sat, 7 Nov 2026 03:28:04 +0300 Subject: [PATCH] fix(french/novelfrance): render inline italic tags instead of escaping them Co-Authored-By: Claude --- plugins/french/novelfrance.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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; }