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

Method get_stash

markdown/inlinepatterns.py:271–279  ·  view source on GitHub ↗
(m)

Source from the content-addressed store, hash-verified

269 return text
270
271 def get_stash(m):
272 id = m.group(1)
273 if id in stash:
274 value = stash.get(id)
275 if isinstance(value, str):
276 return value
277 else:
278 # An `etree` Element - return text content only
279 return ''.join(value.itertext())
280 return util.INLINE_PLACEHOLDER_RE.sub(get_stash, text)
281
282

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected