make headings link to themselves
This commit is contained in:
7
headings.lua
Normal file
7
headings.lua
Normal file
@@ -0,0 +1,7 @@
|
||||
-- Make all headings (except the page h1 added by page.tmpl)
|
||||
-- clickable links to themselves, for easy bookmarking/linking.
|
||||
|
||||
function Header(el)
|
||||
el.content = pandoc.Link(el.content, '#' .. el.identifier)
|
||||
return el
|
||||
end
|
||||
Reference in New Issue
Block a user