MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / FootnotePostprocessor

Class FootnotePostprocessor

markdown/extensions/footnotes.py:297–302  ·  view source on GitHub ↗

Replace placeholders with html entities.

Source from the content-addressed store, hash-verified

295 root.append(footnotesDiv)
296
297class FootnotePostprocessor(markdown.postprocessors.Postprocessor):
298 """ Replace placeholders with html entities. """
299
300 def run(self, text):
301 text = text.replace(FN_BACKLINK_TEXT, "↩")
302 return text.replace(NBSP_PLACEHOLDER, " ")
303
304def makeExtension(configs=[]):
305 """ Return an instance of the FootnoteExtension """

Callers 1

extendMarkdownMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected