fix(route): update chapter name style of sis001 article (#16633)

* update chapter name style of sis001 article

* use h3 for chaper name
This commit is contained in:
Keo
2024-09-05 13:21:30 +08:00
committed by GitHub
parent 6243bb2e8f
commit 05b6533ae1
+1
View File
@@ -29,6 +29,7 @@ async function getThread(item) {
.html()
?.replaceAll('\n', '')
.replaceAll(/\u3000{2}.+?(((?:<br>){2})|(&nbsp;))/g, (str) => `<p>${str.replaceAll('<br>', '')}</p>`)
.replaceAll(/<p>\u3000{6,}(.+?)<\/p>/g, '<h3 style="text-align:center;">$1</h3>')
.replaceAll('&nbsp;', '')
.replace(/^.+?((?:作者)|(?:<p>))/, '$1') + ($('.defaultpost .postattachlist').html() ?? '');
return item;