diff --git a/.luacheckrc b/.luacheckrc index 3075af1d..98d9da28 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -40,6 +40,6 @@ files["lib"] = { globals = { "lpeg", "pandoc", - "Reader" - } + "Reader", + }, } diff --git a/lua-libraries/lunamark.lua b/lua-libraries/lunamark.lua index cf8344ec..914e4902 100644 --- a/lua-libraries/lunamark.lua +++ b/lua-libraries/lunamark.lua @@ -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 diff --git a/pandoc-filters/unitalicize-blockquotes.lua b/pandoc-filters/unitalicize-blockquotes.lua index b426ce8f..515c6328 100644 --- a/pandoc-filters/unitalicize-blockquotes.lua +++ b/pandoc-filters/unitalicize-blockquotes.lua @@ -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