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

Method get_stash

markdown/inlinepatterns.py:570–578  ·  view source on GitHub ↗
(m: re.Match[str])

Source from the content-addressed store, hash-verified

568 return text
569
570 def get_stash(m: re.Match[str]) -> str:
571 id = m.group(1)
572 value = stash.get(id)
573 if value is not None:
574 try:
575 # Ensure we don't have a placeholder inside a placeholder
576 return self.unescape(self.md.serializer(value))
577 except Exception:
578 return r'\%s' % value
579
580 return util.INLINE_PLACEHOLDER_RE.sub(get_stash, text)
581

Callers

nothing calls this directly

Calls 1

unescapeMethod · 0.95

Tested by

no test coverage detected