hunk.code_window:    */
     onEvent(handler, event) {
       // COMPAT: Composition events can change the DOM out of under React, so we
       // increment this key to ensure that a full re-render happens. (2017/10/16)
       if (handler == 'onCompositionEnd') {
         this.tmp.key++
  
hunk.labels: keep keep add keep keep keep keep
hunk.after_edit:     debug('onEvent', handler)
  
hunk.file_path: packages/slate-react/src/components/content.js
hunk.type: add
file: 
  /** @jsx h */
  
  import h from '../helpers/h'
  
  export const config = {
    rules: [
      {
        deserialize(el, next) {
          switch (el.tagName.toLowerCase()) {
            case 'div': {
              return null
            }
            case 'p': {
              return {
                kind: 'block',
                type: 'paragraph',
                nodes: next(el.childNodes),
              }
            }
            case 'img': {
              return {
                kind: 'block',
                type: 'image',
                isVoid: true,
              }
            }
          }
        }
      }
    ]
  }
  
  export const input = `
  <p><img/></p>
  <div><img/></div>
  `.trim()
  
  export const output = (
    <value>
      <document>
        <paragraph>
          <image />
        </paragraph>
      </document>
    </value>
  )
  