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

Method attrSet

markdown_it/token.py:98–100  ·  view source on GitHub ↗

Set `name` attribute to `value`. Override old value if exists.

(self, name: str, value: str | int | float)

Source from the content-addressed store, hash-verified

96 self.attrSet(name, value)
97
98 def attrSet(self, name: str, value: str | int | float) -> None:
99 """Set `name` attribute to `value`. Override old value if exists."""
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."""

Callers 6

attrPushMethod · 0.95
test_tokenFunction · 0.95
imageMethod · 0.80
imageFunction · 0.80
linkFunction · 0.80
blockquoteFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_tokenFunction · 0.76