fix syosetu.com novel body (#1428)

This commit is contained in:
popmsx
2025-01-17 09:33:39 +09:00
committed by GitHub
parent 51fb6611a2
commit a77ed0bb9f
+3 -1
View File
@@ -223,7 +223,9 @@ class Syosetu implements Plugin.PluginBase {
// Get the chapter content
const chapterContent =
cheerioQuery('.p-novel__body .js-novel-text').html() || '';
cheerioQuery(
'.p-novel__body .p-novel__text:not([class*="p-novel__text--"])',
).html() || '';
// Combine title and content with proper HTML structure
return `<h1>${chapterTitle}</h1>${chapterContent}`;