My personal project and infrastructure archive
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
--[[
|
|
Adds “unknown” class to CodeBlock AST nodes without any classes.
|
|
|
|
This will cause Pandoc to use fenced code block, which we prefer.
|
|
]]
|
|
|
|
function CodeBlock(elem)
|
|
if #elem.classes == 0 then
|
|
elem.classes:insert('unknown')
|
|
return elem
|
|
end
|
|
end
|
|
|