Skip to content

Commit

Permalink
fix(markdown behavior): clear list props before applying heading style
Browse files Browse the repository at this point in the history
  • Loading branch information
christianhg committed Nov 4, 2024
1 parent 08b5924 commit 74d5b03
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/editor/src/editor/behavior/behavior.markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ export function createMarkdownBehaviors(config: MarkdownBehaviorsConfig) {
},
],
(_, {focusTextBlock, focusSpan, style}) => [
{
type: 'unset block',
props: ['listItem', 'level'],
paths: [focusTextBlock.path],
},
{
type: 'set block',
style,
Expand Down

0 comments on commit 74d5b03

Please sign in to comment.