Files
cours/.obsidian/plugins/obsidian-enhancing-export/lua/shift_headings.lua
2026-02-15 19:22:09 +01:00

10 lines
212 B
Lua

function Header(el)
if el.level == 1 then
return pandoc.Div(pandoc.Para(el.content), {['custom-style'] = 'Title'})
elseif el.level > 1 then
el.level = el.level - 1
return el
end
return el
end