Replies: 2 comments 1 reply
-
The Lua module needs to be available for your extension. Did you try to bundle More generaly, the feature you want is part of LuaSocket and must be made available somehow (https://w3.impa.br/~diego/software/luasocket/home.html#download) as this is not part of available Lua API provided by Pandoc or Quarto (https://quarto.org/docs/extensions/lua-api.html) So I am not sure how, but it needs to be made available for the Lua interpreter. |
Beta Was this translation helpful? Give feedback.
-
I had this same question, and I'm not sure if this is useful to you, but my colleague told me about |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I would like to create a short code to include some text from a web API call but can't seem to figure out how to load the Lua socket.http package in Quarto. Is this possible? If so, how do I do it.
Right now, I have the following as the first line in my Lua extension:
local http = require("socket.http")
but this generates the following error:
Beta Was this translation helpful? Give feedback.
All reactions