We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c293fd2 commit 153cd43Copy full SHA for 153cd43
packages/parser/src/parser/postprocess/spanStrip.ts
@@ -259,7 +259,10 @@ function splitParagraphAtEmptyExpr(para: Element): Element[] {
259
if (isEmptyExpr(child)) {
260
// Skip the empty expr and surrounding line-breaks
261
// Check if prev element is line-break, remove it
262
- if (currentElements.length > 0 && currentElements[currentElements.length - 1]?.element === "line-break") {
+ if (
263
+ currentElements.length > 0 &&
264
+ currentElements[currentElements.length - 1]?.element === "line-break"
265
+ ) {
266
currentElements.pop();
267
}
268
// Save current paragraph if not empty
0 commit comments