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

Method evalId

markdown/inlinepatterns.py:1397–1400  ·  view source on GitHub ↗

Evaluate the id of `[ref]`.

(self, data: str, index: int, text: str)

Source from the content-addressed store, hash-verified

1395class ShortReferenceInlineProcessor(ReferenceInlineProcessor):
1396 """Short form of reference: `[google]`. """
1397 def evalId(self, data: str, index: int, text: str) -> tuple[str, int, bool]:
1398 """Evaluate the id of `[ref]`. """
1399
1400 return text.lower(), index, True
1401
1402
1403class ImageReferenceInlineProcessor(ReferenceInlineProcessor):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected