quarto-dev / quarto-cli

Open-source scientific and technical publishing system built on Pandoc.
https://quarto.org
Other
4k stars 329 forks source link

Native shortcode to get Quarto CLI version #11379

Open mcanouil opened 3 weeks ago

mcanouil commented 3 weeks ago

It’s currently possible to write the following shortcode to get the version

return {
  ['version'] = function(args, kwargs, meta)
    return table.concat(quarto.version, '.')
  end
}
---
title: "Quarto Playground"
format: html
shortcodes: 
  - version.lua
---

This is a playground for Quarto {{< version >}}.

Originally posted by @mcanouil in https://github.com/quarto-dev/quarto-cli/discussions/11349#discussioncomment-11215849

mcanouil commented 3 weeks ago

(We could also imagine something similar to list dependencies more generally.)

cscheid commented 2 weeks ago

I thought I would have time to do this in 1.6 but that's not going to happen.