Feature: allow reference syntax #22
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
luten/mkdocs-alias-plugin!22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/reference-syntax"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR allows using referenced link syntax with aliases, as proposed in #16.
Closes #16
Thanks a bunch for implementing this feature. There are a few minor tweaks required before merging, but it's looking great!
@ -147,0 +171,4 @@# Resolve the final URL and anchorurl = get_relative_url(alias['url'], page_file.src_uri)if anchor:This function will need a docstring added, or the linter will fail during build/CI.
@ -6,7 +6,14 @@ import loggingimport reThe line length for this import is too long with the additions, so you may have to break it up to make the linter happy. In addition to running pytest locally, please also check pylint (
pylint $(git ls-files '*.py') && pytest -vv) to prevent breaking the CI build process on merge.It looks like the name of this test conflicts with the one right above it.
Looks good, thanks for the changes!