android: update example in audio
[nit.git] / lib / markdown / nitmd.nit
index 0a1002f..83e457d 100644 (file)
@@ -17,6 +17,7 @@ module nitmd
 
 import markdown
 import decorators
+import man
 
 import opts
 
@@ -48,7 +49,9 @@ var to = opt_to.value
 if to == null or to == "html" then
        # Noop
 else if to == "md" then
-       processor.emitter.decorator = new MdDecorator
+       processor.decorator = new MdDecorator
+else if to == "man" then
+       processor.decorator = new ManDecorator
 else
        print "Unknown output format: {to}"
        exit 1