From 1415b54b440bdc0c5b0592451da2e8e17c2fde32 Mon Sep 17 00:00:00 2001 From: Ian Storm Taylor Date: Wed, 13 Jul 2016 16:33:09 -0700 Subject: [PATCH] update leaf text nodes concept --- docs/concepts/the-document-model.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/concepts/the-document-model.md b/docs/concepts/the-document-model.md index a49769411..d89b9648d 100644 --- a/docs/concepts/the-document-model.md +++ b/docs/concepts/the-document-model.md @@ -17,7 +17,7 @@ Each `Document`, `Block` and `Inline` node implements a [`Node`](../reference/mo ### Leaf Text Nodes -One constraint of Slate documents is that the leaf nodes are always `Text` nodes. No `Block` or `Inline` node will ever have no children. It will always have at least an empty text node. +One constraint of Slate documents is that the leaf nodes are always `Text` nodes. No `Block` or `Inline` node will ever have no children. It will always have at least an empty text node. (However, you can _render_ text-less nodes, see the [Void Nodes](#void-nodes) section below!) This constraint means that [`Selections`](../reference/models/selection.md) can always refer to text nodes, and many text-node-level operations are always "safe" regardless of the tree's structure.