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

Class ImageReferenceInlineProcessor

markdown/inlinepatterns.py:1291–1300  ·  view source on GitHub ↗

Match to a stored reference and return `img` element.

Source from the content-addressed store, hash-verified

1289
1290
1291class ImageReferenceInlineProcessor(ReferenceInlineProcessor):
1292 """ Match to a stored reference and return `img` element. """
1293 def makeTag(self, href: str, title: str, text: str) -> etree.Element:
1294 """ Return an `img` [`Element`][xml.etree.ElementTree.Element]. """
1295 el = etree.Element("img")
1296 el.set("src", href)
1297 if title:
1298 el.set("title", title)
1299 el.set("alt", self.unescape(text))
1300 return el
1301
1302
1303class ShortImageReferenceInlineProcessor(ImageReferenceInlineProcessor):

Callers 1

build_inlinepatternsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected