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

Method get_stash

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

Source from the content-addressed store, hash-verified

240 return text
241
242 def get_stash(m):
243 id = m.group(1)
244 if id in stash:
245 value = stash.get(id)
246 if isinstance(value, str):
247 return value
248 else:
249 # An `etree` Element - return text content only
250 return ''.join(value.itertext())
251 return util.INLINE_PLACEHOLDER_RE.sub(get_stash, text)
252
253

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected