Skip to content

Commit 50cd9bb

Browse files
committed
lua - rename mediabag to mediabag_filter. Closes #9282
1 parent dbfc119 commit 50cd9bb

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

news/changelog-1.5.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ All changes included in 1.5:
151151
- ([#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.
152152
- ([#9041](https://github.com/quarto-dev/quarto-cli/issues/9041)): When creating an automatic citation key, replace spaces with underscores in inferred keys.
153153
- ([#9059](https://github.com/quarto-dev/quarto-cli/issues/9059)): `quarto run` now properly works on Windows with Lua scripts.
154+
- ([#9282](https://github.com/quarto-dev/quarto-cli/issues/9282)): Fix name clash in Lua local declarations for `mediabag` in bundled releases.
154155
- Add support for `{{< lipsum >}}` shortcode, which is useful for emitting placeholder text. Provide a specific number of paragraphs (`{{< lipsum 3 >}}`).
155156
- Resolve data URIs in Pandoc's mediabag when rendering documents.
156157
- 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).

src/resources/filters/main.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ local quarto_finalize_filters = {
378378
{ name = "finalize-combined", filter =
379379
combineFilters({
380380
file_metadata(),
381-
mediabag(),
381+
mediabag_filter(),
382382
inject_vault_content_into_rawlatex(),
383383
})},
384384
{ name = "finalize-bookCleanup", filter = bookCleanup() },

src/resources/filters/quarto-finalize/mediabag.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
-- quarto-finalize.lua
22
-- Copyright (C) 2022 Posit Software, PBC
33

4-
function mediabag()
4+
function mediabag_filter()
55
return {
66
-- mediabag entries need to be re-routed to the filesystem
77
-- if this isn't an office doc (as those formats automatically

0 commit comments

Comments
 (0)