MCPcopy Create free account
hub / github.com/executablebooks/markdown-it-py / _attribute_token

Method _attribute_token

markdown_it/tree.py:266–273  ·  view source on GitHub ↗

Return the `Token` that is used as the data source for the properties defined below.

(self)

Source from the content-addressed store, hash-verified

264 # provides that data, and can be called on any node type, including root.
265
266 def _attribute_token(self) -> Token:
267 """Return the `Token` that is used as the data source for the
268 properties defined below."""
269 if self.token:
270 return self.token
271 if self.nester_tokens:
272 return self.nester_tokens.opening
273 raise AttributeError("Root node does not have the accessed attribute")
274
275 @property
276 def tag(self) -> str:

Callers 11

tagMethod · 0.95
attrsMethod · 0.95
attrGetMethod · 0.95
mapMethod · 0.95
levelMethod · 0.95
contentMethod · 0.95
markupMethod · 0.95
infoMethod · 0.95
metaMethod · 0.95
blockMethod · 0.95
hiddenMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected