Add moonscript as a code block class
This commit is contained in:
parent
9ce3996569
commit
1c0b60c803
@ -1,5 +1,5 @@
|
|||||||
function CodeBlock(block)
|
function CodeBlock(block)
|
||||||
if block.classes[1] == "moon" then
|
if block.classes[1] == "moon" or block.classes[1] == "moonscript" then
|
||||||
local fname = os.tmpname()
|
local fname = os.tmpname()
|
||||||
local handle = io.open(fname, "w")
|
local handle = io.open(fname, "w")
|
||||||
handle:write(block.text)
|
handle:write(block.text)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user