MCPcopy
hub / github.com/Python-Markdown/markdown / makeFootnoteId

Method makeFootnoteId

markdown/extensions/footnotes.py:178–183  ·  view source on GitHub ↗

Return footnote link id.

(self, id: str)

Source from the content-addressed store, hash-verified

176 return self.getConfig("SEPARATOR")
177
178 def makeFootnoteId(self, id: str) -> str:
179 """ Return footnote link id. """
180 if self.getConfig("UNIQUE_IDS"):
181 return 'fn%s%d-%s' % (self.get_separator(), self.unique_prefix, id)
182 else:
183 return 'fn{}{}'.format(self.get_separator(), id)
184
185 def makeFootnoteRefId(self, id: str, found: bool = False) -> str:
186 """ 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