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

Class ImageReferenceInlineProcessor

markdown/inlinepatterns.py:1403–1412  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1401
1402
1403class ImageReferenceInlineProcessor(ReferenceInlineProcessor):
1404 """ Match to a stored reference and return `img` element. """
1405 def makeTag(self, href: str, title: str, text: str) -> etree.Element:
1406 """ Return an `img` [`Element`][xml.etree.ElementTree.Element]. """
1407 el = etree.Element("img")
1408 el.set("src", href)
1409 if title:
1410 el.set("title", title)
1411 el.set("alt", self.unescape(text))
1412 return el
1413
1414
1415class ShortImageReferenceInlineProcessor(ImageReferenceInlineProcessor):

Callers 1

build_inlinepatternsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected