Skip to content

Commit a7c7778

Browse files
processValue recurse with needed debug info
fixes #13128
1 parent 0aef331 commit a7c7778

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

news/changelog-1.8.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ All changes included in 1.8:
7676
- ([#12727](https://github.com/quarto-dev/quarto-cli/issues/12727)): Do not crash in the presence of malformed tabset contents.
7777
- ([#12806](https://github.com/quarto-dev/quarto-cli/pull/12806)): Use pandoc APIs to handle codepage conversion on Windows.
7878
- ([#12811](https://github.com/quarto-dev/quarto-cli/pull/12811)): Add support for YouTube Shorts in `video` shortcode.
79+
- ([#13128](https://github.com/quarto-dev/quarto-cli/issues/13128)): Meta shortcode could crash on bad input.
7980

8081
## Commands
8182

src/resources/filters/quarto-pre/shortcodes-handlers.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ function processValue(val, name, t)
287287
elseif pandoc.utils.type(val) == "Blocks" then
288288
return pandoc.utils.blocks_to_inlines(val)
289289
elseif pandoc.utils.type(val) == "List" and #val == 1 then
290-
return processValue(val[1])
290+
return processValue(val[1], name, t)
291291
else
292292
warn("Unsupported type '" .. pandoc.utils.type(val) .. "' for key " .. name .. " in a " .. t .. " shortcode.")
293293
return { pandoc.Strong(pandoc.Inlines { pandoc.Str("?invalid " .. t .. " type:" .. name) } ) }
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
bad-meta: [[1,2]]
3+
---
4+
5+
{{< meta bad-meta >}}

0 commit comments

Comments
 (0)