Better text parsing

This commit is contained in:
syuilo 2018-05-07 17:19:00 +09:00
parent 9950fafff7
commit 8afaca36d9

View File

@ -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));
} }