diff options
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) |