mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-05 14:57:25 +02:00
Added 'include' parameter to tsconfig to tell the compiler to only look inside the src directory
33 lines
425 B
TypeScript
33 lines
425 B
TypeScript
/** @jsx jsx */
|
|
import { jsx } from 'slate-hyperscript'
|
|
|
|
export const input = (
|
|
<editor>
|
|
<element>
|
|
<cursor />
|
|
one
|
|
</element>
|
|
</editor>
|
|
)
|
|
export const output = {
|
|
children: [
|
|
{
|
|
children: [
|
|
{
|
|
text: 'one',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
selection: {
|
|
anchor: {
|
|
path: [0, 0],
|
|
offset: 0,
|
|
},
|
|
focus: {
|
|
path: [0, 0],
|
|
offset: 0,
|
|
},
|
|
},
|
|
}
|