0.03
No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
Converts GitHub-flavored Markdown to a Word document
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
~> 0.10
~> 10.0
~> 3.4

Runtime

 Project Readme

Markdown to Word

Converts GitHub-flavored Markdown to a Word document

Build Status

Why

While Markdown is the lingua franca of the development world, the rest of the world still sees Word documents as the de facto way to share text. Rather than try to convert the rest of the world, just work in Markdown, and convert things to Word before sending to others.

Demo

You can see it in action with this demo

Installation

Add the following to your project's Gemfile:

gem 'markdown_to_word'

Usage

MarkdownToWord.convert("# Some Markdown").path
=> "/path/to/the/file.docx"

Command line usage

m2w "# Some Markdown" > foo.docx

(Returns the contents of the docx to STDOUT)

How it works

  1. We use HTML Pipeline to convert the Markdown to HTML
  2. We use HTML to Word to convert the HTML to a Word doc

Why not just use Pandoc?

While Pandoc is great on the desktop, it's hard to install on servers or use on Heroku.

Need to go the other way?

See Word to Markdown.