From bfe6bd131845138fe09a97e7471c4b68ef42a763 Mon Sep 17 00:00:00 2001 From: Stoo Goff Date: Fri, 30 Jan 2015 15:49:22 +0000 Subject: Added markdown-writer which will write directly from docx to Markdown. --- lib/html-writer.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'lib/html-writer.js') 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(); } } -- cgit v1.2.3