MCPcopy
hub / github.com/Python-Markdown/markdown / ImageReferenceInlineProcessor

Class ImageReferenceInlineProcessor

markdown/inlinepatterns.py:940–949  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

938
939
940class ImageReferenceInlineProcessor(ReferenceInlineProcessor):
941 """ Match to a stored reference and return `img` element. """
942 def makeTag(self, href: str, title: str, text: str) -> etree.Element:
943 """ Return an `img` [`Element`][xml.etree.ElementTree.Element]. """
944 el = etree.Element("img")
945 el.set("src", href)
946 if title:
947 el.set("title", title)
948 el.set("alt", self.unescape(text))
949 return el
950
951
952class ShortImageReferenceInlineProcessor(ImageReferenceInlineProcessor):

Callers 1

build_inlinepatternsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…