code: def _item_in_context(lines, item, context):
      
      start_offset = _line_and_col_to_offset(lines, item.start_pos[0],
                                             item.start_pos[1])
      stop_offset = _line_and_col_to_offset(lines, item.end_pos[0],
                                            item.end_pos[1])
      width = stop_offset - start_offset
  
      return start_offset >= context.offset and width <= len(context.topic)
docs: Determines if a WorkItem falls within an anchor.
  
      This only returns True if a WorkItems start-/stop-pos range is *completely*
      within an anchor, not just if it overalaps.