From d8b5e85857aa90726f976af9416f40bbeab4ee02 Mon Sep 17 00:00:00 2001 From: Carlos Scheidegger Date: Fri, 20 Dec 2024 08:33:25 -0700 Subject: [PATCH] fix pandoc.mediabag lua typings --- news/changelog-1.7.md | 1 + src/resources/lua-types/pandoc/mediabag.lua | 1 + 2 files changed, 2 insertions(+) diff --git a/news/changelog-1.7.md b/news/changelog-1.7.md index 02b92a2287..ade95005c3 100644 --- a/news/changelog-1.7.md +++ b/news/changelog-1.7.md @@ -36,6 +36,7 @@ All changes included in 1.7: empty list, has no child nodes, and contains no text. - ([#11699](https://github.com/quarto-dev/quarto-cli/issues/11699)): Fix crash with `video` shortcode inside HTML comments. - Expose new `quarto.paths.tinytex_bin_dir` in Quarto's Lua API. If TinyTeX is found by Quarto, this will be set to the path to the `bin` directory of the TinyTeX installation where command line tool are located (e.g., `pdflatex`, `tlmgr`, etc.). If TinyTeX is not found, this will be `nil`, meaning Quarto will use the system PATH to find the command line tools. +- Fix `pandoc.mediabag` Lua typings so autocompletions work with the Lua LSP integration. ## Other Fixes and Improvements diff --git a/src/resources/lua-types/pandoc/mediabag.lua b/src/resources/lua-types/pandoc/mediabag.lua index 51f56b0da2..d2a597159f 100644 --- a/src/resources/lua-types/pandoc/mediabag.lua +++ b/src/resources/lua-types/pandoc/mediabag.lua @@ -1,6 +1,7 @@ ---@meta ---@module 'pandoc.mediabag' +pandoc.mediabag = {} --[[ Removes a single entry from the media bag.