File size: 311 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/** @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',
    },
  ],
}