python312Packages.tencentcloud-sdk-python: 3.0.1266 -> 3.0.1267
[NixPkgs.git] / maintainers / scripts / doc / unknown-code-language.lua
blob85d8df4690baa2b1499c1e8c407419ab0cd20b84
1 --[[
2 Adds “unknown” class to CodeBlock AST nodes without any classes.
4 This will cause Pandoc to use fenced code block, which we prefer.
5 ]]
7 function CodeBlock(elem)
8 if #elem.classes == 0 then
9 elem.classes:insert('unknown')
10 return elem
11 end
12 end