You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
format-links create a new link instead of renaming #9606
This check dates from when the {format, text} form was added (6b62246), so not a regression. We could count entries with a format key too, so that listing any format in format-links replaces the default list.
The - html workaround above still works with 1.12.0. Writing the format itself as a plain string (- docx) also removes the duplicates, but that link then keeps its default name.
I opened #15312 for this. With it, a {format, text} entry renames the link of that format instead of adding a second one. Other rendered formats keep their default link, so the original example shows only "Whatever".
I didn't go with counting format entries like plain format names, as I suggested above, because that would also drop the links to every rendered format not listed, and some documents rely on them. To show only some formats, add them as plain strings in format-links, as today.
Activity
cderv commentedon May 14, 2024
Current workaround is to add all formats into the
format-linkspart, including htmlProbably filtering would be better, but this is currently how it works
Finally solved `format-link` issue creating new links. See quarto-dev…
cderv commentedon Nov 6, 2026
I can still reproduce this with 1.11.9 and the 1.12.0 prerelease. It also happens when
format-linksis set underformat: html:, with several formats:"Other Formats" shows PDF, Word, Typst, MS Word.
The default links are added unless one entry is a plain string, and
{format: ...}entries are not counted:quarto-cli/src/format/html/format-html-links.ts
Lines 157 to 167 in d5e0617
This check dates from when the
{format, text}form was added (6b62246), so not a regression. We could count entries with aformatkey too, so that listing any format informat-linksreplaces the default list.The
- htmlworkaround above still works with 1.12.0. Writing the format itself as a plain string (- docx) also removes the duplicates, but that link then keeps its default name.cderv commentedon Nov 6, 2026
I opened #15312 for this. With it, a
{format, text}entry renames the link of that format instead of adding a second one. Other rendered formats keep their default link, so the original example shows only "Whatever".I didn't go with counting
formatentries like plain format names, as I suggested above, because that would also drop the links to every rendered format not listed, and some documents rely on them. To show only some formats, add them as plain strings informat-links, as today.Fix format-links object entries adding a duplicate link (quarto-dev#1…