
export default {
  rules: [
    {
      deserialize(el, next) {
        switch (el.tagName) {
          case 'p': {
            return {
              kind: 'block',
              type: 'paragraph',
              nodes: next(el.children)
            }
          }
          case 'em': {
            return {
              kind: 'mark',
              type: 'italic',
              nodes: next(el.children)
            }
          }
        }
      }
    }
  ]
}
