diff options
Diffstat (limited to 'lib/html-writer.js')
| -rw-r--r-- | lib/html-writer.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/html-writer.js b/lib/html-writer.js index f1761c9..33441cb 100644 --- a/lib/html-writer.js +++ b/lib/html-writer.js @@ -5,9 +5,15 @@ exports.writer = writer; function writer(options) { options = options || {}; - if (options.prettyPrint) { + if(options.prettyPrint) { return prettyWriter(); - } else { + } + else if(options.markdown) { + var markdown = require("./markdown-writer"); + + return markdown.writer(); + } + else { return simpleWriter(); } } |
