Skip to content

Commit e96d4e4

Browse files
🐛: Anchor ids in separate renders should not affect each other. (#43)
Co-authored-by: Chris Sewell <chrisj_sewell@hotmail.com>
1 parent 855067e commit e96d4e4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mdit_py_plugins/anchors/index.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,8 @@ def _make_anchors_func(
6565
permalinkBefore: bool,
6666
permalinkSpace: bool,
6767
):
68-
slugs: Set[str] = set()
69-
7068
def _anchor_func(state: StateCore):
69+
slugs: Set[str] = set()
7170
for (idx, token) in enumerate(state.tokens):
7271
if token.type != "heading_open":
7372
continue

0 commit comments

Comments
 (0)