MCPcopy Create free account
hub / github.com/Python-Markdown/markdown / handle_data

Method handle_data

markdown/htmlparser.py:291–300  ·  view source on GitHub ↗
(self, data: str)

Source from the content-addressed store, hash-verified

289 return any(re.search(r'</\s*{}\s*>'.format(re.escape(tag)), rest, re.I) for tag in self.inline_stack)
290
291 def handle_data(self, data: str):
292 if self.intail and '\n' in data:
293 self.intail = False
294 if self.inraw:
295 self._cache.append(data)
296 else:
297 if inner_blank_line_re.search(data):
298 # A blank line ends the paragraph, so open inline tags no longer enclose what follows.
299 self.inline_stack = []
300 self.cleandoc.append(data)
301
302 def handle_empty_tag(self, data: str, is_block: bool):
303 """ Handle empty tags (`<data>`). """

Callers 7

closeMethod · 0.95
parse_piMethod · 0.95
parse_commentMethod · 0.95
parse_starttagMethod · 0.95
parse_endtagMethod · 0.45
parse_starttagMethod · 0.45

Calls 1

searchMethod · 0.80

Tested by

no test coverage detected