HF RL Explorer

markdown table of contents: fix bug

markdown table of contents: fix bug: a task in smol-software-harbor (Harbor dataset). When a Markdown file has two headings with the same title, mdtoc.py links both TOC entries to the same anchor. Implement what the docstring of unique slugs() describes ( usage , usage-1 , usage-2 , ... in order…

The task

When a Markdown file has two headings with the same title, `mdtoc.py` links both TOC entries to the same anchor. Implement what the docstring of `unique_slugs()` describes (`usage`, `usage-1`, `usage-2`, ... in order of appearance). Run `python3 -m pytest -q`.

Part of efederici/smol-software-harbor.