fix(route): add center tag to sis001 articles (#16644)
This commit is contained in:
parent
de87a4aa18
commit
39cb8d7b56
|
|
@ -29,7 +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, '<p style="text-align:center;">$1</p>')
|
||||
.replaceAll(/<p>\u3000{6,}(.+?)<\/p>/g, '<center><p style="text-align:center;">$1</p></center>')
|
||||
.replaceAll(' ', '')
|
||||
.replace(/<br><br> +<br><br>/, '') + ($('.defaultpost .postattachlist').html() ?? '');
|
||||
return item;
|
||||
|
|
|
|||
Loading…
Reference in New Issue