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

Method attrGet

markdown_it/token.py:102–104  ·  view source on GitHub ↗

Get the value of attribute `name`, or null if it does not exist.

(self, name: str)

Source from the content-addressed store, hash-verified

100 self.attrs[name] = value
101
102 def attrGet(self, name: str) -> None | str | int | float:
103 """Get the value of attribute `name`, or null if it does not exist."""
104 return self.attrs.get(name, None)
105
106 def attrJoin(self, name: str, value: str) -> None:
107 """Join value to existing attribute via space.

Callers 1

test_tokenFunction · 0.95

Calls

no outgoing calls

Tested by 1

test_tokenFunction · 0.76