We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbeb319 commit 8e64082Copy full SHA for 8e64082
index.js
@@ -107,11 +107,18 @@ function postHTMLParser(html, options) {
107
},
108
ontext(text) {
109
const last = bufArray.last();
110
+
111
if (!last) {
112
results.push(text);
113
return;
114
}
115
116
+ if (last.content?.length && typeof last.content[last.content.length - 1] === 'string') {
117
+ last.content[last.content.length - 1] = last.content[last.content.length - 1] + text
118
+ return
119
+ }
120
121
122
last.content || (last.content = []);
123
last.content.push(text);
124
0 commit comments