MCPcopy Index your code
hub / github.com/ronreiter/interactive-tutorials / attributeCallback

Function attributeCallback

markdown/inlinepatterns.py:106–107  ·  view source on GitHub ↗
(match)

Source from the content-addressed store, hash-verified

104def handleAttributes(text, parent):
105 """Set values of an element based on attribute definitions ({@id=123})."""
106 def attributeCallback(match):
107 parent.set(match.group(1), match.group(2).replace('\n', ' '))
108 return ATTR_RE.sub(attributeCallback, text)
109
110

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected