1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-20 06:01:24 +02:00

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.
This commit is contained in:
Devin Morgan
2019-08-19 12:20:46 -04:00
committed by Ian Storm Taylor
parent 6672f553e9
commit 9d9d6067e4

View File

@@ -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