From 50cd9bb86dccb2f815d286f53ace6a95011b34a9 Mon Sep 17 00:00:00 2001 From: Carlos Scheidegger Date: Tue, 16 Apr 2024 09:15:09 -0700 Subject: [PATCH] lua - rename mediabag to mediabag_filter. Closes #9282 --- news/changelog-1.5.md | 1 + src/resources/filters/main.lua | 2 +- src/resources/filters/quarto-finalize/mediabag.lua | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/news/changelog-1.5.md b/news/changelog-1.5.md index 44e1edbcd9..a4c6ae55e3 100644 --- a/news/changelog-1.5.md +++ b/news/changelog-1.5.md @@ -151,6 +151,7 @@ All changes included in 1.5: - ([#8898](https://github.com/quarto-dev/quarto-cli/issues/8898)): `.deb` and `.tar.gz` bundle contents are now associated to root user and group instead of default user and group for CI build runners. - ([#9041](https://github.com/quarto-dev/quarto-cli/issues/9041)): When creating an automatic citation key, replace spaces with underscores in inferred keys. - ([#9059](https://github.com/quarto-dev/quarto-cli/issues/9059)): `quarto run` now properly works on Windows with Lua scripts. +- ([#9282](https://github.com/quarto-dev/quarto-cli/issues/9282)): Fix name clash in Lua local declarations for `mediabag` in bundled releases. - Add support for `{{< lipsum >}}` shortcode, which is useful for emitting placeholder text. Provide a specific number of paragraphs (`{{< lipsum 3 >}}`). - Resolve data URIs in Pandoc's mediabag when rendering documents. - Increase v8's max heap size by default, to avoid out-of-memory errors when rendering large documents (also cf. https://github.com/denoland/deno/issues/18935). diff --git a/src/resources/filters/main.lua b/src/resources/filters/main.lua index 43b607b48d..ac1d15aaed 100644 --- a/src/resources/filters/main.lua +++ b/src/resources/filters/main.lua @@ -378,7 +378,7 @@ local quarto_finalize_filters = { { name = "finalize-combined", filter = combineFilters({ file_metadata(), - mediabag(), + mediabag_filter(), inject_vault_content_into_rawlatex(), })}, { name = "finalize-bookCleanup", filter = bookCleanup() }, diff --git a/src/resources/filters/quarto-finalize/mediabag.lua b/src/resources/filters/quarto-finalize/mediabag.lua index cd7c42c09b..3566f02895 100644 --- a/src/resources/filters/quarto-finalize/mediabag.lua +++ b/src/resources/filters/quarto-finalize/mediabag.lua @@ -1,7 +1,7 @@ -- quarto-finalize.lua -- Copyright (C) 2022 Posit Software, PBC -function mediabag() +function mediabag_filter() return { -- mediabag entries need to be re-routed to the filesystem -- if this isn't an office doc (as those formats automatically