function Header(el) if el.level == 1 then local newchildren = pandoc.List() newchildren:insert(pandoc.Span(el.content, { class = 's-headlines__title-inner' })) el.content = newchildren end if el.level <= 3 and el.identifier ~= '' then el.content:insert(pandoc.Space()) el.content:insert(pandoc.Link(pandoc.RawInline('html', ''), '#' .. el.identifier, nil, { class = 's-headlines__link' })) end return el end