Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native shortcode to get Quarto CLI version #11379

Open
mcanouil opened this issue Nov 12, 2024 · 2 comments
Open

Native shortcode to get Quarto CLI version #11379

mcanouil opened this issue Nov 12, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request shortcodes issues related to shortcodes
Milestone

Comments

@mcanouil
Copy link
Collaborator

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 #11349 (reply in thread)

@mcanouil mcanouil added enhancement New feature or request triaged-to Issues that were not self-assigned, signals that an issue was assigned to someone. shortcodes issues related to shortcodes labels Nov 12, 2024
@mcanouil
Copy link
Collaborator Author

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

@cscheid cscheid added this to the v1.7 milestone Nov 13, 2024
@cscheid
Copy link
Collaborator

cscheid commented Nov 13, 2024

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

@cderv cderv removed the triaged-to Issues that were not self-assigned, signals that an issue was assigned to someone. label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request shortcodes issues related to shortcodes
Projects
None yet
Development

No branches or pull requests

3 participants