summaryrefslogtreecommitdiff
path: root/filters/toc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'filters/toc.lua')
-rw-r--r--filters/toc.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/filters/toc.lua b/filters/toc.lua
index 479b082..102ac83 100644
--- a/filters/toc.lua
+++ b/filters/toc.lua
@@ -13,8 +13,7 @@ list_of_headers = {}
if FORMAT:match 'html' then
- -- TODO: ReMOVE THIS
- function headers2links_level(headers)
+ function headers2link_and_level(headers)
local links = {}
for i, v in ipairs(headers) do
local l = pandoc.Link( pandoc.utils.stringify(v), "#"..v.identifier )
@@ -27,7 +26,7 @@ if FORMAT:match 'html' then
if #headers == 0 then
return pandoc.Null()
end
- local links = headers2links_level(headers)
+ local links = headers2link_and_level(headers)
-- min_level doesn't have to be 1, it could be larger
local min_level = -1