Skip to content

Commit

Permalink
docs: Document precisely what evalId produces in both cases, stripp…
Browse files Browse the repository at this point in the history
…ing off the square brackets
  • Loading branch information
lmmx committed Jan 13, 2024
1 parent a6e373b commit e339d10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mkdocs_autorefs/references.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ def handleMatch(self, m: Match[str], data: Any) -> Element | EvalIDType: # type
def evalId(self, data: str, index: int, text: str) -> EvalIDType: # noqa: N802 (parent's casing)
"""Evaluate the id portion of `[ref][id]`.
If `[ref][]` use `[ref]`.
If `[ref][]` use "ref".
If `[ref][id]` use "id".
Arguments:
data: The data to evaluate.
Expand Down

0 comments on commit e339d10

Please sign in to comment.