Open cderv opened 1 month ago
Thanks for considering this. I’m not sure if you need to add another option for this case? If the user has specified the text
parameter in format-links
you can take that directly as what the user wants to be shown in the link output. That was how I assumed it would work based on the documentation.
I agree text
value should be left untouched.
I would also like it if this automatic addition of (kExtensionName)
(yielding, e.g., PDF (preprint)
) to the document can be overridden, since it prevents me from using it for purposes like submitting manuscripts.
(Of course, I could just edit/remove the resulting (preprint)
part of string from the HTML source code, but for reproducibility and consistency reasons, it would be good to have the option to make Quarto generate it like that in the first place.)
It seems not possible today to really customize fully the text as the extension name will always be appended in parenthesis if the format comes from an extension
https://github.com/quarto-dev/quarto-cli/blob/9724c3dd403d4e723bcb0a7e7bef6e49d23a353a/src/format/html/format-html-links.ts#L95-L104
Should we add a new option to allow overriding this ?
Or should just an example showing the
href
form be used instead for those situation ? https://quarto.org/docs/output-formats/html-multi-format.html#specifying-formats-to-linkTo think about.
Discussed in https://github.com/quarto-dev/quarto-cli/discussions/10270