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:
@@ -29,6 +29,7 @@ async function getThread(item) {
|
||||
.html()
|
||||
?.replaceAll('\n', '')
|
||||
.replaceAll(/\u3000{2}.+?(((?:<br>){2})|( ))/g, (str) => `<p>${str.replaceAll('<br>', '')}</p>`)
|
||||
.replaceAll(/<p>\u3000{6,}(.+?)<\/p>/g, '<h3 style="text-align:center;">$1</h3>')
|
||||
.replaceAll(' ', '')
|
||||
.replace(/^.+?((?:作者)|(?:<p>))/, '$1') + ($('.defaultpost .postattachlist').html() ?? '');
|
||||
return item;
|
||||
|
||||
Reference in New Issue
Block a user