MCPcopy
hub / github.com/Python-Markdown/markdown / isstate

Method isstate

markdown/blockparser.py:67–72  ·  view source on GitHub ↗

Test that top (current) level is of given state.

(self, state: Any)

Source from the content-addressed store, hash-verified

65 self.pop()
66
67 def isstate(self, state: Any) -> bool:
68 """ Test that top (current) level is of given state. """
69 if len(self):
70 return self[-1] == state
71 else:
72 return False
73
74
75class BlockParser:

Callers 5

testMethod · 0.80
get_levelMethod · 0.80
runMethod · 0.80
runMethod · 0.80
testIsSateMethod · 0.80

Calls

no outgoing calls

Tested by 1

testIsSateMethod · 0.64