1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-09-01 03:11:44 +02:00

Add note about why the normalization rule match the parent

This commit is contained in:
Soreine
2016-11-10 17:10:29 +01:00
parent 1abdc25625
commit 0901f361bd

View File

@@ -90,7 +90,12 @@ const INLINE_CHILDREN_RULE = {
}
/**
* A default schema rule to ensure that inline nodes are not empty
* A default schema rule to ensure that inline nodes are not empty.
*
* This rule is applied to all blocks, because when they contain an
* empty inline, we need to remove the inline from that parent
* block. If `validate` was to be memoized, it should be against the
* parent node, not the inline themselves.
*
* @type {Object}
*/