Skip to content

Commit

Permalink
opt code
Browse files Browse the repository at this point in the history
  • Loading branch information
LJHAAAAA committed Jul 1, 2024
1 parent c461447 commit 3044a1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/slate-convert/md-to-slate/transform.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import slugid from 'slugid';
import { generateDefaultText } from '../../extension/core';
import { generateDefaultText, generateDefaultParagraph } from '../../extension/core';
import {
BLOCKQUOTE,
HEADER,
Expand Down Expand Up @@ -187,7 +187,7 @@ export const transformListItem = (node) => {
return transformParagraph(child);
} else {
console.warn('Unhandled child type in list item:', child);
return generateDefaultText();
return generateDefaultParagraph();
}
}).flat(),
};
Expand Down

0 comments on commit 3044a1e

Please sign in to comment.