1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-31 02:49:56 +02:00

add marks empty schema test

This commit is contained in:
Ian Storm Taylor
2019-12-02 15:04:58 -05:00
parent 1d0711b723
commit 258afae442
2 changed files with 27 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
/** @jsx jsx */
import { jsx } from 'slate-hyperscript'
export const schema = [
{
for: 'node',
match: 'element',
validate: {
marks: [],
},
},
]
export const input = (
<editor>
<element>
<mark a>text</mark>
</element>
</editor>
)
export const output = (
<editor>
<element>text</element>
</editor>
)