-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Labels
Description
The component override unknownBlockStyle is not working. It seems that when you provide a block component override, it is merged with the default block-styles, so that there never is an "unknown" block.
For instance if you define
block: {
// Ex. 1: customizing common block types
h1: ({children}) => <h1 className="text-2xl">{children}</h1>,
blockquote: ({children}) => <blockquote className="border-l-purple-500">{children}</blockquote>,
},
unknownBlockStyle: ({children}) => <BlockWrapper>{children}</BlockWrapper>,
}
the block style 'normal' should render with BlockWrapper, but instead gets render with the default component (<p>)