Coder Social home page Coder Social logo

markdown_to_word's Introduction

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.

markdown_to_word's People

Contributors

benbalter avatar wiiikiii avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.