Skip to content

Commit

Permalink
style: Reformat Lua with stylua
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Nov 19, 2024
1 parent cd6a941 commit 1633547
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ files["lib"] = {
globals = {
"lpeg",
"pandoc",
"Reader"
}
"Reader",
},
}
12 changes: 7 additions & 5 deletions lua-libraries/lunamark.lua
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,12 @@

local G = {}

setmetatable(G,{ __index = function(t,name)
local mod = require("lunamark." .. name)
rawset(t,name,mod)
return t[name]
end })
setmetatable(G, {
__index = function (t, name)
local mod = require("lunamark." .. name)
rawset(t, name, mod)
return t[name]
end,
})

return G
4 changes: 2 additions & 2 deletions pandoc-filters/unitalicize-blockquotes.lua
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
local function unitalicize (element)
element = pandoc.walk_block(element, {
Para = function(el)
Para = function (el)
if #el.content == 1 then
local inner = el.content[1]
if inner.tag == "Emph" then
return pandoc.Plain(inner.content)
end
end
end
end,
})
return element
end
Expand Down

0 comments on commit 1633547

Please sign in to comment.