hunk.code_window:    *
      * @return {Element}
      */
     renderText() {
       const { block, node, parent, text, index, leaves } = this.props
       // COMPAT: If the text is empty and it's the only child, we need to render a
       // line break to get the block to have the proper height.
       if (text == '' && parent.kind == 'block' && parent.text == '') {
         return <span data-slate-empty-block>{'\n'}</span>
       }
       // COMPAT: If the text is empty otherwise, it's because it's on the edge of
       // an inline void node, so we render a zero-width space so that the
       // selection can be inserted next to it still.
  
hunk.labels: keep keep keep keep keep replace replace replace replace replace replace replace keep keep keep keep
hunk.after_edit:     const { block, node, text, index, leaves } = this.props
  
hunk.file_path: packages/slate-react/src/components/leaf.js
hunk.type: replace
file: /** @jsx h */
  
  import h from '../../helpers/h'
  
  export default function (value) {
    return value
      .change()
      .addMark('bold')
      .value
      .change()
      .undo()
      .value
  }
  
  export const input = (
    <value>
      <document>
        <paragraph>
          <i>w<anchor />o</i>r<focus />d
        </paragraph>
      </document>
    </value>
  )
  
  export const output = input
  