11 lines
305 B
Lua
11 lines
305 B
Lua
-- Change each untagged codeblock in the document to a "nix" code block.
|
|
|
|
function CodeBlock(block)
|
|
-- Check if the code block does not have a language specified.
|
|
if block.classes[1] == nil then
|
|
-- Set the language of the code block to "nix".
|
|
block.classes[1] = "nix"
|
|
end
|
|
return block
|
|
end
|