fix inline code serializing to blocks

This commit is contained in:
Shawn Erquhart 2017-07-12 18:51:28 -04:00
parent 0e50210dcf
commit 31c997897f

View File

@ -146,6 +146,9 @@ const RULES = [
if (['bulleted-list', 'numbered-list'].includes(entity.type)) {
return;
}
if (entity.kind !== 'block') {
return;
}
const component = BLOCK_COMPONENTS[entity.type]
if (!component) {
return;
@ -164,6 +167,9 @@ const RULES = [
}
},
serialize(entity, children) {
if (entity.kind !== 'mark') {
return;
}
const component = MARK_COMPONENTS[entity.type]
if (!component) {
return;