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

Method attrItems

markdown_it/token.py:89–91  ·  view source on GitHub ↗

Get (key, value) list of attrs.

(self)

Source from the content-addressed store, hash-verified

87 return list(self.attrs.keys()).index(name)
88
89 def attrItems(self) -> list[tuple[str, str | int | float]]:
90 """Get (key, value) list of attrs."""
91 return list(self.attrs.items())
92
93 def attrPush(self, attrData: tuple[str, str | int | float]) -> None:
94 """Add `[ name, value ]` attribute to list. Init attrs if necessary."""

Callers 1

renderAttrsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected