From 6518afc83e5422fdac68c7df09ced9a99fb8f191 Mon Sep 17 00:00:00 2001 From: Jan Vlcek Date: Sun, 24 Jun 2018 01:20:28 +1200 Subject: [PATCH] Update schema rule marks documentation (#1931) --- docs/reference/slate/schema.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference/slate/schema.md b/docs/reference/slate/schema.md index 958d14073..62bc2795c 100644 --- a/docs/reference/slate/schema.md +++ b/docs/reference/slate/schema.md @@ -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`