Closed AlexeiAndreev closed 6 years ago
https://docs.slatejs.org/slate-core/schema
Under rules example match is given as match: { kind: 'block', type: 'code' }, but right below under Rule Properties, it's match: Function
match
match: { kind: 'block', type: 'code' }
match: Function
Under match: Function match(object: Node || Mark) But I'm pretty sure match never gets passed a Mark.
Function match(object: Node || Mark)
I believe this should be fixed now with the new Schema and docs.
https://docs.slatejs.org/slate-core/schema
Under rules example
match
is given asmatch: { kind: 'block', type: 'code' }
, but right below under Rule Properties, it'smatch: Function
Under match:
Function match(object: Node || Mark)
But I'm pretty sure match never gets passed a Mark.