docs: def _parse_style(self):
          """Parse wiki-style formatting (``''``/``'''`` for italics/bold)."""
          self._head += 2
          ticks = 2
          while self._read() == "'":
              self._head += 1
              ticks += 1
          italics = self._context & contexts.STYLE_ITALICS
          bold = self._context & contexts.STYLE_BOLD
  
          if ticks > 5:
              self._emit_text("'" * (ticks - 5))
              ticks = 5
          elif ticks == 4:
              self._emit_text("'")
              ticks = 3
  
          if (italics and ticks in (2, 5)) or (bold and ticks in (3, 5)):
              if ticks == 5:
                  self._head -= 3 if italics else 2
              return self._pop()
          elif not self._can_recurse():
              if ticks == 3:
                  if self._context & contexts.STYLE_SECOND_PASS:
                      self._emit_text("'")
                      return self._pop()
                  if self._context & contexts.STYLE_ITALICS:
                      self._context |= contexts.STYLE_PASS_AGAIN
              self._emit_text("'" * ticks)
          elif ticks == 2:
              self._parse_italics()
          elif ticks == 3:
              if self._parse_bold():
                  return self._pop()
          else:  # ticks == 5
              self._parse_italics_and_bold()
          self._head -= 1