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

Method evalId

markdown/inlinepatterns.py:1285–1288  ·  view source on GitHub ↗

Evaluate the id of `[ref]`.

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

Source from the content-addressed store, hash-verified

1283class ShortReferenceInlineProcessor(ReferenceInlineProcessor):
1284 """Short form of reference: `[google]`. """
1285 def evalId(self, data: str, index: int, text: str) -> tuple[str, int, bool]:
1286 """Evaluate the id of `[ref]`. """
1287
1288 return text.lower(), index, True
1289
1290
1291class ImageReferenceInlineProcessor(ReferenceInlineProcessor):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected