class_docstr: Extract raw HTML from text.
  
  The raw HTML is stored in the [`htmlStash`][markdown.util.HtmlStash] of the
  [`Markdown`][markdown.Markdown] instance passed to `md` and the remaining text
  is stored in `cleandoc` as a list of strings.
docstr: Returns char index in `self.rawdata` for the start of the current line. 
docstr_tok: ["Returns","char","index","in","`","self.rawdata","`","for","the","start","of","the","current","line","."]
code: def line_offset(self) -> int:
      """Returns char index in `self.rawdata` for the start of the current line."""
      for ii in range(
          len(self.lineno_start_cache) - 1, self.lineno - 1
      ):
          last_line_start_pos = self.lineno_start_cache[ii]
          lf_pos = self.rawdata.find("\n", last_line_start_pos)
          if lf_pos == -1:
              # No more newlines found. Use end of raw data as start of line beyond end.
              lf_pos = len(self.rawdata)
          self.lineno_start_cache.append(lf_pos + 1)
  
      return self.lineno_start_cache[self.lineno - 1]
  
imports: from __future__ import annotations
  import re
  import importlib.util
  import sys
  from typing import TYPE_CHECKING, Sequence
label_desc: Use image node_id 4 for calling the HTMLExtractor obj's underlying member method code with example usage: obj.line_offset() and returns: self