mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
12 lines
260 B
Lua
12 lines
260 B
Lua
--[[
|
|
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
|