1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-26 16:44:22 +02:00

Update schema rule marks documentation (#1931)

This commit is contained in:
Jan Vlcek
2018-06-24 01:20:28 +12:00
committed by Ian Storm Taylor
parent d29fc26edf
commit 6518afc83e

View File

@@ -155,11 +155,11 @@ Will validate a node's children. The `nodes` definitions can declare the `object
```js ```js
{ {
marks: ['italic'] marks: [{ type: 'bold' }, { type: 'italic' }]
} }
``` ```
Will validate a node's marks. The `marks` definitions can declare a list of mark types to be allowed. If declared, any marks that are not in the list will be removed. Will validate a node's marks. The `marks` definitions can declare the `type` property, providing a list of mark types to be allowed. If declared, any marks that are not in the list will be removed.
### `normalize` ### `normalize`