-
Notifications
You must be signed in to change notification settings - Fork 404
Closed
Description
Discussed in #6764
Originally posted by multimeric September 8, 2023
Description
The quarto documentation explains how to use metadata within the document, and also how to access nested values using the dot notation: https://quarto.org/docs/authoring/variables.html. However, it doesn't explain how to access array/list elements, and indeed I can't find a syntax that supports this.
In the following document I show my attempts to do this:
---
top: "Top Lvel"
nested:
str: "Nested String"
array:
- foo
- bar
---
{{< meta top >}}
{{< meta nested.str >}}
{{< meta nested.array[0] >}}
{{< meta nested.array[1] >}}
{{< meta nested.array.0 >}}
{{< meta nested.array.1 >}}
This renders to PDF like this, showing that none of my attempted array accesses worked:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
