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:
committed by
Ian Storm Taylor
parent
d29fc26edf
commit
6518afc83e
@@ -155,11 +155,11 @@ Will validate a node's children. The `nodes` definitions can declare the `object
|
||||
|
||||
```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`
|
||||
|
||||
|
Reference in New Issue
Block a user