diff options
author | Ekaitz Zarraga <ekaitz@elenq.tech> | 2020-05-28 16:12:10 +0200 |
---|---|---|
committer | Ekaitz Zarraga <ekaitz@elenq.tech> | 2020-05-28 16:12:10 +0200 |
commit | 2f7d357af47c5946085aafdd9c3df64a081e0a25 (patch) | |
tree | 18fec384cbf1b6875849c05a68424a5135fedaa0 | |
parent | f4afc91c0785cb112bc507b0450f86278ad1cc2a (diff) |
Update project for ToC filter
-rw-r--r-- | Makefile.scm | 6 | ||||
-rw-r--r-- | filters/anchored-h.lua | 2 | ||||
-rw-r--r-- | templates/web/css/elenq-publishing.css | 4 |
3 files changed, 3 insertions, 9 deletions
diff --git a/Makefile.scm b/Makefile.scm index 6076a89..639cce9 100644 --- a/Makefile.scm +++ b/Makefile.scm @@ -70,7 +70,7 @@ ,(string-append "--resource-path=templates/web:" folder) "--base-header-level=2" ;"--shift-heading-level-by=-1" is the new way "--template=web-simple.html" - ;"--lua-filter=section-numbers.lua" + "--lua-filter=toc.lua" "--lua-filter=anchored-h.lua" "--lua-filter=appendixes.lua")) ((files) @@ -95,13 +95,11 @@ "-o" ,out "--standalone" "--self-contained" - "--toc" - "--toc-depth=2" "--base-header-level=2" ;"--shift-heading-level-by=-1" is the new way "--data-dir=." ,(string-append "--resource-path=./templates/web/:./templates:" folder) "--template=web.html" - ;"--lua-filter=section-numbers.lua" + "--lua-filter=toc.lua" "--lua-filter=anchored-h.lua" "--lua-filter=appendixes.lua")) ((files) diff --git a/filters/anchored-h.lua b/filters/anchored-h.lua index bc77da6..7d80121 100644 --- a/filters/anchored-h.lua +++ b/filters/anchored-h.lua @@ -1,6 +1,6 @@ if FORMAT:match 'html' then function Header(el) - local l = pandoc.Link("", "#"..el.identifier) + local l = pandoc.Link("¶", "#"..el.identifier) l.classes[1]="anchor" el.content[#el.content+1] = pandoc.Space() el.content[#el.content+1] = l diff --git a/templates/web/css/elenq-publishing.css b/templates/web/css/elenq-publishing.css index b6ff274..981b430 100644 --- a/templates/web/css/elenq-publishing.css +++ b/templates/web/css/elenq-publishing.css @@ -22,7 +22,3 @@ h2{ padding-bottom: 2rem; font-family: "LatoLatinLightWeb", Helvetica, Arial, sans-serif; } - -.anchor:before{ - content: "¶"; -} |