Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Drop three needless forward declarations
Diffstat (limited to 'custom/extensions')
-rw-r--r--custom/extensions/about-render.lua12
1 file changed, 3 insertions, 9 deletions
diff --git a/custom/extensions/about-render.lua b/custom/extensions/about-render.lua
index b6ea560..f330d04 100644
--- a/custom/extensions/about-render.lua
+++ b/custom/extensions/about-render.lua
@@ -191,9 +191,7 @@ end
-- first. html() only ever gets literal tag scaffolding and the character
-- references whose shape the markdown grammar checked.
-local emit_inline
-
-emit_inline = function(list)
+local function emit_inline(list)
for _, node in ipairs(list) do
local kind = node.kind
if kind == "text" then
@@ -272,9 +270,7 @@ local function emit_lines(lines)
end
end
-local emit_blocks
-
-emit_blocks = function(blocks)
+local function emit_blocks(blocks)
for _, block in ipairs(blocks) do
local kind = block.kind
if kind == "heading" then
@@ -536,9 +532,7 @@ if has_lpeg then
return lines
end
- local parse_blocks
-
- parse_blocks = function(lines, depth)
+ local function parse_blocks(lines, depth)
local blocks, i, n = {}, 1, #lines
while i <= n do
local line = lines[i]