Skip to content

Commit

Permalink
optimize code
Browse files Browse the repository at this point in the history
  • Loading branch information
shuntian committed Jun 6, 2024
1 parent ecf2020 commit f7525f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/slate-convert/md-to-slate/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ export const transformListItem = (node) => {
return transformParagraph(child);
} else if (child.type === 'html') { // patch
return transformBlockHtml(child);
} else if (child.type === 'thematicBreak') { // patch
return transformParagraph(child);
}
}).flat(),
};
Expand Down

0 comments on commit f7525f9

Please sign in to comment.