One thing I like about ddoc is how hands-off it is. You can put almost any text inside it and it gets passed out unmolested. I think the only character that gets disappeared or altered in ddoc is $. So almost any language could be added as a post-processor to ddoc without needing to modify anything.