Repository navigation
docs: explain that a format-links object renames that format's link - #2344
Merged
Merged
Conversation
From Quarto 1.12, a `{format, text}` entry in `format-links` replaces
the default link for that format, and other rendered formats keep
their default links. Before, the default link was added as well, so a
renamed format appeared twice ("PDF" and "Typst"). The only way around
it was to add a plain-string entry, which is why the example listed
`- html`.
Drop that line from the example, and explain how object entries and
plain-string entries interact.
Contributor
📝 Preview Deployment🔍 Full site preview: https://deploy-preview-2344.quarto.org 🔄 Modified Documents |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
From Quarto 1.12, a
format-linksentry written as an object (format,text,icon) renames the link for that format, and other rendered formats keep their default links. Before, the default link was added as well, so a renamedtypstlink showed up twice, as "PDF" and "Typst", unless the list also had a plain-string entry. The example in "Specifying Formats to Link" listed- html, which avoided the duplicate.Remove
- htmlfrom that example and explain how the two kinds of entry combine: an object renames a link, and plain strings limit the links to the formats they name.Targets
prereleasebecause the fix ships in 1.12.Companion to quarto-dev/quarto-cli#15312