We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba45ba6 commit b160b9dCopy full SHA for b160b9d
index.js
@@ -113,7 +113,7 @@ function postHTMLParser(html, options) {
113
return;
114
}
115
116
- if (last.content?.length && typeof last.content[last.content.length - 1] === 'string') {
+ if (last.content && 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
0 commit comments