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
18 lines
311 B
TypeScript
18 lines
311 B
TypeScript
/** @jsx jsx */
|
|
import { createHyperscript } from 'slate-hyperscript'
|
|
|
|
const jsx = createHyperscript({
|
|
elements: {
|
|
paragraph: { type: 'paragraph' },
|
|
},
|
|
})
|
|
export const input = <paragraph>word</paragraph>
|
|
export const output = {
|
|
type: 'paragraph',
|
|
children: [
|
|
{
|
|
text: 'word',
|
|
},
|
|
],
|
|
}
|