MCPcopy Create free account
hub / github.com/Python-Markdown/markdown / makeTag

Method makeTag

markdown/inlinepatterns.py:1271–1280  ·  view source on GitHub ↗

Return an `a` [`Element`][xml.etree.ElementTree.Element].

(self, href: str, title: str, text: str)

Source from the content-addressed store, hash-verified

1269 return id, end, True
1270
1271 def makeTag(self, href: str, title: str, text: str) -> etree.Element:
1272 """ Return an `a` [`Element`][xml.etree.ElementTree.Element]. """
1273 el = etree.Element('a')
1274
1275 el.set('href', href)
1276 if title:
1277 el.set('title', title)
1278
1279 el.text = text
1280 return el
1281
1282
1283class ShortReferenceInlineProcessor(ReferenceInlineProcessor):

Callers 1

handleMatchMethod · 0.95

Calls 1

setMethod · 0.80

Tested by

no test coverage detected