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

Method search

markdown/inlinepatterns.py:834–845  ·  view source on GitHub ↗

Search.

(self, data: str, start: int)

Source from the content-addressed store, hash-verified

832 return None
833
834 def search(self, data: str, start: int) -> re.Match[str] | None:
835 """Search."""
836
837 for i in range(start, len(data)):
838 if data[i] in self.delimiters:
839 d = self.delimiters[data[i]]
840 m = d.boundary.match(data, i)
841 if m is not None:
842 if not d.stack and m.lastgroup[0] == 'e': # type: ignore[index]
843 continue
844 return m
845 return None
846
847 def add_region(self, delim: Delimiter, a: int, b: int, c: int, d: int, size: int) -> None:
848 """Add region."""

Callers 15

handleMatchMethod · 0.95
get_frontmatterFunction · 0.80
get_endtag_textMethod · 0.80
inline_close_followsMethod · 0.80
handle_dataMethod · 0.80
handle_commentMethod · 0.80
parse_commentMethod · 0.80
testMethod · 0.80
runMethod · 0.80
testMethod · 0.80
runMethod · 0.80
testMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected