1local kMermaidClz = 'mermaid' 2 3-- Reformat all heading text 4function CodeBlock(el) 5 -- add mermaid-js 6 if el.attr.classes:includes(kMermaidClz) then 7 return pandoc.RawBlock("html", "<pre class='mermaid'>\n" .. el.text .. "\n</pre>") 8 end 9end 10