summaryrefslogtreecommitdiffstats
path: root/filters
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2022-06-14 20:35:37 +0200
committerVolpeon <git@volpeon.ink>2022-06-14 20:35:37 +0200
commit7d9bb5fee50561bdce8fe7440ae9d1b8aae48bd0 (patch)
treed8955670f0bff46eaa06997e84a450143e8e5302 /filters
parentFix print style bg (diff)
downloadvolpeon.ink-7d9bb5fee50561bdce8fe7440ae9d1b8aae48bd0.tar.gz
volpeon.ink-7d9bb5fee50561bdce8fe7440ae9d1b8aae48bd0.tar.bz2
volpeon.ink-7d9bb5fee50561bdce8fe7440ae9d1b8aae48bd0.zip
Update
Diffstat (limited to 'filters')
-rw-r--r--filters/macros.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/filters/macros.lua b/filters/macros.lua
index 2864bef..36cc459 100644
--- a/filters/macros.lua
+++ b/filters/macros.lua
@@ -10,8 +10,11 @@ function figure(el)
10 pandoc.walk_block(el, { Image = function(iel) images:insert(iel) end }) 10 pandoc.walk_block(el, { Image = function(iel) images:insert(iel) end })
11 11
12 return pandoc.RawBlock("html", 12 return pandoc.RawBlock("html",
13 "<figure><a href=\"" .. images[1].src .. "\"><img src=\"" .. images[1].src .. "\" title=\"" .. 13 "<figure class=\"c-figure\">\
14 images[1].title .. "\" /></a></figure>") 14 <a class=\"c-figure__link\" href=\"" .. images[1].src .. "\">\
15 <img class=\"c-figure__image\" src=\"" .. images[1].src .. "\" title=\"" .. images[1].title .. "\" />\
16 </a>\
17 </figure>")
15end 18end
16 19
17function Div(el) 20function Div(el)