From 1e495a5cde920ce689d5c35596d4e4252d9673cc Mon Sep 17 00:00:00 2001 From: Jatin Shridhar Date: Thu, 2 Jul 2020 20:51:58 +0530 Subject: [PATCH] minor elaboration on decorations (#3747) * minor elaboration on decorations highlights the difference with marks * instead of pronoun use the word "Decorations" --- docs/concepts/08-rendering.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/concepts/08-rendering.md b/docs/concepts/08-rendering.md index 1a18d69bc..c95739b16 100644 --- a/docs/concepts/08-rendering.md +++ b/docs/concepts/08-rendering.md @@ -103,6 +103,8 @@ Decorations are another type of text-level formatting. They are similar to regul However, decorations are computed at **render-time** based on the content itself. This is helpful for dynamic formatting like syntax highlighting or search keywords, where changes to the content (or some external data) has the potential to change the formatting. +Decorations are different from Marks in that they are not stored on editor state. + ## Toolbars, Menus, Overlays, and more! In addition to controlling the rendering of nodes inside Slate, you can also retrieve the current editor context from inside other components using the `useSlate` hook.