diff options
Diffstat (limited to 'filters')
-rw-r--r-- | filters/toc.lua | 5 |
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 |