From 8c0706051eb7529429a7782de54af793ad6f0946 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Thu, 16 Jun 2022 22:51:12 +0200 Subject: Added alert component, added image description post from fedi --- filters/macros.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'filters') diff --git a/filters/macros.lua b/filters/macros.lua index 36cc459..ca0b487 100644 --- a/filters/macros.lua +++ b/filters/macros.lua @@ -1,6 +1,8 @@ -function note(el) +function alert(el) el.classes = pandoc.List() - el.classes:insert("c-note") + el.classes:insert("o-alert") + el.classes:insert("o-alert--primary") + el.classes:insert("s-alerts__alert") return el end @@ -18,8 +20,8 @@ function figure(el) end function Div(el) - if el.classes:includes("note") then - el = note(el) + if el.classes:includes("alert") then + el = alert(el) elseif el.classes:includes("figure") then el = figure(el) end -- cgit v1.2.3-70-g09d2