ianstormtaylor / slate

A completely customizable framework for building rich text editors. (Currently in beta.)
http://slatejs.org
MIT License
29.71k stars 3.24k forks source link

Inconsistencies in schema documentation #1261

Closed AlexeiAndreev closed 6 years ago

AlexeiAndreev commented 6 years ago

https://docs.slatejs.org/slate-core/schema

  1. Under rules example match is given as match: { kind: 'block', type: 'code' }, but right below under Rule Properties, it's match: Function

  2. Under match: Function match(object: Node || Mark)
    But I'm pretty sure match never gets passed a Mark.

ianstormtaylor commented 6 years ago

I believe this should be fixed now with the new Schema and docs.