hunk.code_window:     if (element === content.ref.current) {
         return PathUtils.create([])
       }
       const search = (instance, p) => {
  
hunk.labels: keep replace keep keep keep keep
hunk.after_edit:     // If element does not have a key, it is likely a string or
       // mark, return the closest parent Node that can be looked up.
       if (!nodeElement.hasAttribute(DATA_ATTRS.KEY)) {
         nodeElement = nodeElement.closest(SELECTORS.KEY)
       }
       if (!nodeElement || !nodeElement.getAttribute(DATA_ATTRS.KEY)) {
         return null
       }
       if (nodeElement === content.ref.current) {
  
hunk.file_path: packages/slate-react/src/plugins/react/queries.js
hunk.type: replace
file: /** @jsx h */
  
  import h from '../../../helpers/h'
  import { Set } from 'immutable'
  import { Mark } from 'slate'
  
  export const input = (
    <value>
      <document>
        <paragraph>
          wo<anchor />
          <mark type="a">rd</mark>
        </paragraph>
        <paragraph>
          <paragraph>
            <mark type="a">middle</mark>
          </paragraph>
          <paragraph />
        </paragraph>
        <paragraph>
          <mark type="a">
            an<focus />other
          </mark>
          <mark type="b">unselected marked text</mark>
        </paragraph>
      </document>
    </value>
  )
  
  export default function({ document, selection }) {
    return document.getActiveMarksAtRange(selection)
  }
  
  export const output = Set.of(Mark.create('a'))
  