update `pandoc` data dir

master
urosm 2024-06-26 16:02:58 +02:00
parent 370785b0c9
commit c52cd4ea39
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,12 @@
SCRIPT_NAME = "current_date.lua"
os.setlocale("C")
return {
{ Meta = function(m)
if m.date == nil then
os.setlocale(os.getenv("LANG"))
m.date = os.date("%c")
return m
end
end }
}

View File

@ -0,0 +1,11 @@
SCRIPT_NAME = "link_headings.lua"
os.setlocale("C")
local Link = pandoc.Link
return {
{ Header = function(h)
h.content = Link(h.content, ("#%s"):format(h.attr.identifier))
return h
end }
}