diff options
| author | Stoo Goff <stoo.goff@beatsystems.com> | 2015-01-30 15:49:22 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2015-02-04 18:27:51 +0000 |
| commit | bfe6bd131845138fe09a97e7471c4b68ef42a763 (patch) | |
| tree | 20c69194503ca5af2aa7650e3b4b06b07140864b /lib/html-writer.js | |
| parent | a7657db08f295fa619090eb6fe3a925f3ba6fb06 (diff) | |
Added markdown-writer which will write directly from docx to Markdown.
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(); } } |
