Files
nixarr/docs/pandoc/lua/code-default-to-nix.lua
T
2024-03-01 08:15:31 +01:00

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