text: 
  import path from 'path'
  import readMetadata from 'read-metadata'
  import { Raw } from '../../../../..'
  
  export default function (state) {
    const file = path.resolve(__dirname, 'fragment.yaml')
    const raw = readMetadata.sync(file)
    const fragment = Raw.deserialize(raw).document
  
    const { document, selection } = state
    const texts = document.getTexts()
    const first = texts.first()
    const range = selection.merge({
      anchorKey: first.key,
      anchorOffset: 0,
      focusKey: first.key,
      focusOffset: 0
    })
  
    return state
      .transform()
      .insertFragmentAtRange(range, fragment)
      .apply()
  }
  