fix inline code serializing to blocks
This commit is contained in:
parent
0e50210dcf
commit
31c997897f
@ -146,6 +146,9 @@ const RULES = [
|
|||||||
if (['bulleted-list', 'numbered-list'].includes(entity.type)) {
|
if (['bulleted-list', 'numbered-list'].includes(entity.type)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (entity.kind !== 'block') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const component = BLOCK_COMPONENTS[entity.type]
|
const component = BLOCK_COMPONENTS[entity.type]
|
||||||
if (!component) {
|
if (!component) {
|
||||||
return;
|
return;
|
||||||
@ -164,6 +167,9 @@ const RULES = [
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
serialize(entity, children) {
|
serialize(entity, children) {
|
||||||
|
if (entity.kind !== 'mark') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const component = MARK_COMPONENTS[entity.type]
|
const component = MARK_COMPONENTS[entity.type]
|
||||||
if (!component) {
|
if (!component) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user