Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions news/changelog-1.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ All changes included in 1.7:
- Fix `pandoc.mediabag` Lua typings so autocompletions work with the Lua LSP integration.
- ([#11896](https://github.com/quarto-dev/quarto-cli/pull/11896)): fix `\f` (`{{< pagebreak >}}`) form feed character not valid in PowerPoint (`pptx`).
- ([#11664](https://github.com/quarto-dev/quarto-cli/issues/11664)): `lipsum` shortcode is no longer randomly generated by default, use `{{< lipsum random=true >}}` to restore randomness.
- ([#11379](https://github.com/quarto-dev/quarto-cli/issues/11379)): Add `version` shortcode to display the current Quarto version.

## Engines

Expand Down
6 changes: 6 additions & 0 deletions src/resources/extensions/quarto/version/_extension.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
title: Version
author: Posit, PBC
organization: quarto
contributes:
shortcodes:
- version.lua
5 changes: 5 additions & 0 deletions src/resources/extensions/quarto/version/version.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
return {
['version'] = function(args, kwargs, meta)
return table.concat(quarto.version, '.')
end
}
10 changes: 10 additions & 0 deletions tests/docs/smoke-all/2025/03/06/issue-12006.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
format: html
_quarto:
tests:
html:
ensureFileRegexMatches:
- ["Quarto [0-9]+\\.[0-9]+\\.[0-9]+ is amazing"]
---

Quarto {{< version >}} is amazing.
Loading