CodeBlock: (block) -> if block.classes[1] == "moon" or block.classes[1] == "moonscript" fname = os.tmpname! with io.open fname, "w" \write block.text \close! p = io.popen ("pygmentize -f html -l moonscript.py %s -x")\format fname out = p\read"*a" pandoc.RawBlock "html", out