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

Method makeFootnoteId

markdown/extensions/footnotes.py:190–195  ·  view source on GitHub ↗

Return footnote link id.

(self, id: str)

Source from the content-addressed store, hash-verified

188 return self.getConfig("SEPARATOR")
189
190 def makeFootnoteId(self, id: str) -> str:
191 """ Return footnote link id. """
192 if self.getConfig("UNIQUE_IDS"):
193 return 'fn%s%d-%s' % (self.get_separator(), self.unique_prefix, id)
194 else:
195 return 'fn{}{}'.format(self.get_separator(), id)
196
197 def makeFootnoteRefId(self, id: str, found: bool = False) -> str:
198 """ 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