From 9d9d6067e467d27e84cbff1377cafb65d194f56e Mon Sep 17 00:00:00 2001 From: Devin Morgan Date: Mon, 19 Aug 2019 12:20:46 -0400 Subject: [PATCH] Update glossary.md with definition of `match` (#2964) `match` get's used a number of times within the slate/schema.md but it does not appear to be explicitly defined anywhere. This term seems like a great candidate for the Glossary. --- docs/general/glossary.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/general/glossary.md b/docs/general/glossary.md index 2848ac5d1..e8450216e 100644 --- a/docs/general/glossary.md +++ b/docs/general/glossary.md @@ -66,6 +66,10 @@ A _"keys"_ is a unique identifier assigned to a node in Slate and is used to ref A _"mark"_ represents formatting data that is attached to characters within text. Standard formatting such as **bold**, _italic_, `code`, or custom formatting for your application can be implemented using marks. +### Match + +A `match`, is an object with possible fields of `type` and `object` that are used to _match_ `Nodes` when defining rules in a [Schema](../reference/slate/schema.md). An example of `match` could be `{type: 'paragraph'}`, `{objet: 'inline', type: '@-tag'}`, etc. + ### Merge ### Model