diff options
author | Volpeon <git@volpeon.ink> | 2022-06-14 20:35:37 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2022-06-14 20:35:37 +0200 |
commit | 7d9bb5fee50561bdce8fe7440ae9d1b8aae48bd0 (patch) | |
tree | d8955670f0bff46eaa06997e84a450143e8e5302 /filters | |
parent | Fix print style bg (diff) | |
download | volpeon.ink-7d9bb5fee50561bdce8fe7440ae9d1b8aae48bd0.tar.gz volpeon.ink-7d9bb5fee50561bdce8fe7440ae9d1b8aae48bd0.tar.bz2 volpeon.ink-7d9bb5fee50561bdce8fe7440ae9d1b8aae48bd0.zip |
Update
Diffstat (limited to 'filters')
-rw-r--r-- | filters/macros.lua | 7 |
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>") | ||
15 | end | 18 | end |
16 | 19 | ||
17 | function Div(el) | 20 | function Div(el) |