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.8.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ All changes included in 1.8:
- ([#12727](https://github.com/quarto-dev/quarto-cli/issues/12727)): Do not crash in the presence of malformed tabset contents.
- ([#12806](https://github.com/quarto-dev/quarto-cli/pull/12806)): Use pandoc APIs to handle codepage conversion on Windows.
- ([#12811](https://github.com/quarto-dev/quarto-cli/pull/12811)): Add support for YouTube Shorts in `video` shortcode.
- ([#13128](https://github.com/quarto-dev/quarto-cli/issues/13128)): Meta shortcode could crash on bad input.

## Commands

Expand Down
2 changes: 1 addition & 1 deletion src/resources/filters/quarto-pre/shortcodes-handlers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ function processValue(val, name, t)
elseif pandoc.utils.type(val) == "Blocks" then
return pandoc.utils.blocks_to_inlines(val)
elseif pandoc.utils.type(val) == "List" and #val == 1 then
return processValue(val[1])
return processValue(val[1], name, t)
else
warn("Unsupported type '" .. pandoc.utils.type(val) .. "' for key " .. name .. " in a " .. t .. " shortcode.")
return { pandoc.Strong(pandoc.Inlines { pandoc.Str("?invalid " .. t .. " type:" .. name) } ) }
Expand Down
5 changes: 5 additions & 0 deletions tests/docs/smoke-all/shortcodes/meta-bad-data.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
bad-meta: [[1,2]]
---

{{< meta bad-meta >}}
Loading