You can use the following lua filter (say, alert.lua
) when you produce a beamer presentation.
if FORMAT:match 'beamer' then
function Span(el)
if el.classes[1] == "alert" then
table.insert(el.content, 1, pandoc.RawInline("latex", "\\alert{"))
table.insert(el.content, pandoc.RawInline("latex", "}"))
end
return el