Skip to content

Commit

Permalink
Merge pull request #3 from miroapp/MDOCS-1372
Browse files Browse the repository at this point in the history
MDOCS-1372 handle falsy blot html conversion
  • Loading branch information
bmakuh authored Nov 14, 2024
2 parents 7960696 + 524f7f6 commit fd40ce0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/quill/src/core/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ function convertHTML(
isRoot = false,
): string {
if ('html' in blot && typeof blot.html === 'function') {
return blot.html(index, length);
return blot.html(index, length) ?? '';
}
if (blot instanceof TextBlot) {
return escapeText(blot.value().slice(index, index + length));
Expand Down

0 comments on commit fd40ce0

Please sign in to comment.