From 05b6533ae10c6e6d3e0968c64caedba99343985c Mon Sep 17 00:00:00 2001 From: Keo Date: Thu, 5 Sep 2024 13:21:30 +0800 Subject: [PATCH] fix(route): update chapter name style of sis001 article (#16633) * update chapter name style of sis001 article * use h3 for chaper name --- lib/routes/sis001/common.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/routes/sis001/common.ts b/lib/routes/sis001/common.ts index 4e3e485a5ccfcb..9baa8aa74387e1 100644 --- a/lib/routes/sis001/common.ts +++ b/lib/routes/sis001/common.ts @@ -29,6 +29,7 @@ async function getThread(item) { .html() ?.replaceAll('\n', '') .replaceAll(/\u3000{2}.+?(((?:
){2})|( ))/g, (str) => `

${str.replaceAll('
', '')}

`) + .replaceAll(/

\u3000{6,}(.+?)<\/p>/g, '

$1

') .replaceAll(' ', '') .replace(/^.+?((?:作者)|(?:

))/, '$1') + ($('.defaultpost .postattachlist').html() ?? ''); return item;