Skip to content

Commit

Permalink
fixup! refactor: Duplicate anchors instead of modifying them in-place
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Feb 20, 2024
1 parent dac711e commit a198b36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mkdocstrings/handlers/rendering.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def __init__(self, md: Markdown, id_prefix: str):

@staticmethod
def _iter(parent: Element) -> Iterator[tuple[Element, int, Element]]:
for index, element in enumerate(parent._children):
for index, element in enumerate(parent):
yield parent, index, element
yield from IdPrependingTreeprocessor._iter(element)

Expand Down

0 comments on commit a198b36

Please sign in to comment.