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

Method makeTag

markdown/inlinepatterns.py:1383–1392  ·  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

1381 return id, end, True
1382
1383 def makeTag(self, href: str, title: str, text: str) -> etree.Element:
1384 """ Return an `a` [`Element`][xml.etree.ElementTree.Element]. """
1385 el = etree.Element('a')
1386
1387 el.set('href', href)
1388 if title:
1389 el.set('title', title)
1390
1391 el.text = text
1392 return el
1393
1394
1395class ShortReferenceInlineProcessor(ReferenceInlineProcessor):

Callers 1

handleMatchMethod · 0.95

Calls 1

setMethod · 0.80

Tested by

no test coverage detected