-
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
featureNew feature or requestNew feature or request
Description
Description of the bug
The automatically generated internal header link IDs don't match what common markdown processors (e.g., GitHub, GitLab) produce. In particular, markdown processors strip punctuation like periods, which griffe2md currently keeps.
Here is the relevant documentation about how header link IDs are generated:
(They seem use roughly the same logic.)
To Reproduce
griffe2md is producing this functions list:
**Functions:**
- [**format_version**](#vspect.format_version) – Format a version using a format string.
- [**get_package_version**](#vspect.get_package_version) – Get the version of a package.
- [**read_version_from_pyproject_toml**](#vspect.read_version_from_pyproject_toml) – Read the version from a pyproject.toml file. Requires the version to be statically defined.
Expected behavior
However, these are the actual header link IDs that GitHub creates:
#vspectformat_version
#vspectget_package_version
#vspectread_version_from_pyproject_toml
Environment information
- System: macOS-14.7.2-x86_64-i386-64bit-Mach-O
- Python: cpython 3.13.0 (/Users/jqi/vspect/.venv/bin/python3)
- Environment variables:
- Installed packages:
griffe2md
v1.1.0
multimeric and rafalkrupinski
Metadata
Metadata
Assignees
Labels
featureNew feature or requestNew feature or request