summaryrefslogtreecommitdiffstats
path: root/filters/headers.lua
diff options
context:
space:
mode:
Diffstat (limited to 'filters/headers.lua')
-rw-r--r--filters/headers.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/filters/headers.lua b/filters/headers.lua
new file mode 100644
index 0000000..ea9cde6
--- /dev/null
+++ b/filters/headers.lua
@@ -0,0 +1,9 @@
1function Header(el)
2 if el.level <= 3 then
3 local newchildren = pandoc.List()
4 newchildren:insert(pandoc.Span(el.content, { class = 's-headings__primary' }))
5 el.content = newchildren
6 end
7
8 return el
9end