mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-13 06:08:12 +09:00
Better text parsing
This commit is contained in:
parent
d1fd3adcc9
commit
54b46c5d00
@ -64,7 +64,7 @@ function parse(tag, html: string): string {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'p':
|
case 'p':
|
||||||
text += '\n';
|
text += '\n\n';
|
||||||
if (node.childNodes) {
|
if (node.childNodes) {
|
||||||
node.childNodes.forEach(n => analyze(n));
|
node.childNodes.forEach(n => analyze(n));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user