repo.or.cz
/
NixPkgs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
telegraf: 1.27.0 -> 1.27.1
[NixPkgs.git]
/
maintainers
/
scripts
/
doc
/
unknown-code-language.lua
blob
85d8df4690baa2b1499c1e8c407419ab0cd20b84
1
--[[
2
Adds “unknown” class to CodeBlock AST nodes without any classes.
3
4
This will cause Pandoc to use fenced code block, which we prefer.
5
]]
6
7
function
CodeBlock
(
elem
)
8
if
#
elem
.
classes
==
0
then
9
elem
.
classes
:
insert
(
'unknown'
)
10
return
elem
11
end
12
end