I\'m using PandocRuby to generate HTML and docx from the same source.
So far, I simply used PandocRuby.convert two times with quite independent options.
PandocRuby.convert