Skip to content

Commit 5ccf910

Browse files
committed
fix: removing unnecessary empty paragraph check
1 parent fa2f070 commit 5ccf910

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/core/render/compiler/blockquote.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,10 @@ export const blockquoteCompiler = ({ renderer }) =>
2020
token[key] = token[key].replace(calloutMark, '').trimStart();
2121
});
2222

23-
// Remove empty paragraph
24-
if (tokens.length > 1 && !token.raw.trim()) {
25-
tokens = tokens.slice(1);
26-
}
27-
2823
openTag = `<div class="callout ${calloutType}">`;
2924
closeTag = `</div>`;
3025
}
3126

3227
const body = this.parser.parse(tokens);
33-
const html = `${openTag}${body}${closeTag}`;
34-
35-
return html;
28+
return `${openTag}${body}${closeTag}`;
3629
});

0 commit comments

Comments
 (0)