Added
Last separator in .join
.join now accepts an optional last parameter, the separator placed before the last element, which is useful for natural-language lists:
.var {letters}
- A
- B
- C
.letters::join last:{" and "}The output is A, B and C. If last is not set, separator is used.
Preserving whitespace in quoted arguments
Leading and trailing whitespace in a function call argument is ignored. You can now keep it by enclosing the argument in double quotes, placed right next to the braces. The quotes are removed from the value:
.letters::join separator:{" | "}The content is still evaluated as usual, including Markdown and function calls.
This is a breaking change for arguments that start and end with a double quote, whose quotes are now removed. To keep them, escape them: {\"Hello\"}.
Changed
Borderless Mermaid diagrams in paperwhite
The paperwhite color theme no longer draws a border around Mermaid diagrams. This was a regression introduced in v2.1.2.
Latin Modern font in latex
The latex layout theme now uses Latin Modern Roman instead of Computer Modern, matching the font of modern LaTeX documents, also covering a more characters, at a third of the previous size. The change appears imperceptible to readers.
Removed
.string (breaking change)
The .string function has been removed. To keep leading and trailing whitespace in an argument, enclose it in double quotes instead: .uppercase {.string {" hello "}} becomes .uppercase {" hello "}.
Fixed
Text values are no longer evaluated as Quarkdown code when turned dynamic
Fixed an issue that caused a static string value to be evaluated as Quarkdown source when converted to a dynamic value.
For example, suppose the content of .env {PATH} contained /home/user/.cargo/bin. When passed through a custom function, or dynamic functions like .otherwise and .takeif, the string .cargo was interpreted as a function call.
These values are now always displayed as plain text.
Bibliography: keeping URLs and DOIs verbatim
In BibTeX bibliographies, url and doi values containing -- or --- had their hyphens turned into dashes, which broke the resulting links. These fields are now kept exactly as written.
As a consequence, TeX escapes in these fields are no longer interpreted. For example, write ~ rather than \~ in a URL.
See michel-kraemer/citeproc-java#355.
Sponsors
Thanks to our sponsors! 🎉
