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

Method makeFootnoteId

markdown/extensions/footnotes.py:197–202  ·  view source on GitHub ↗

Return footnote link id.

(self, id: str)

Source from the content-addressed store, hash-verified

195 return self.getConfig("SEPARATOR")
196
197 def makeFootnoteId(self, id: str) -> str:
198 """ Return footnote link id. """
199 if self.getConfig("UNIQUE_IDS"):
200 return 'fn%s%d-%s' % (self.get_separator(), self.unique_prefix, id)
201 else:
202 return 'fn{}{}'.format(self.get_separator(), id)
203
204 def makeFootnoteRefId(self, id: str, found: bool = False) -> str:
205 """ Return footnote back-link id. """

Callers 2

makeFootnotesDivMethod · 0.95
handleMatchMethod · 0.80

Calls 2

get_separatorMethod · 0.95
getConfigMethod · 0.80

Tested by

no test coverage detected