Fix doi urls in prefix duplication, and pmids/pmcids #132
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #127, fixes #131
Link
and return aSelf::Build
. The list of url-ish variables didn't need to be specific to each OutputFormat implementation (we do only have two, but yeah)One note here is that PubMed has started redirecting PMID urls to e.g. https://pubmed.ncbi.nlm.nih.gov/34706787/, so that might be a better canonical url format. But for the moment it just does what the csl 1.1 spec says.
One more note, even when link anchors are turned off, any of the recognised prefixes are still stripped and the canonical URL prefix, which is always HTTPS, is put in its place.