MCPcopy Index your code
hub / github.com/Python-Markdown/markdown / get_stash

Method get_stash

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

Source from the content-addressed store, hash-verified

516 return text
517
518 def get_stash(m: re.Match[str]) -> str:
519 id = m.group(1)
520 value = stash.get(id)
521 if value is not None:
522 try:
523 # Ensure we don't have a placeholder inside a placeholder
524 return self.unescape(self.md.serializer(value))
525 except Exception:
526 return r'\%s' % value
527
528 return util.INLINE_PLACEHOLDER_RE.sub(get_stash, text)
529

Callers

nothing calls this directly

Calls 1

unescapeMethod · 0.95

Tested by

no test coverage detected