word-to-markdown alternatives and similar gems
Based on the "Markdown Processors" category.
Alternatively, view word-to-markdown alternatives based on common mentions on social networks and blogs.
Redcarpet9.1 1.6 L3 word-to-markdown VS RedcarpetThe safe Markdown parser, reloaded.
kramdown7.4 3.7 L2 word-to-markdown VS kramdownkramdown is a fast, pure Ruby Markdown superset converter, using a strict syntax definition and supporting several common extensions.
reverse_markdownRuby gem to convert html into markdown
Maruku4.7 0.0 L5 word-to-markdown VS MarukuA pure-Ruby Markdown-superset interpreter (Official Repo).
CommonMarker4.2 4.6 word-to-markdown VS CommonMarkerRuby wrapper for comrak (CommonMark parser)
Tocer1.4 7.7 word-to-markdown VS TocerA command line interface for generating table of contents for Markdown files.
MarkdownExec0.5 0.0 word-to-markdown VS MarkdownExecInteractively select and execute fenced code blocks in markdown files. Build complex scripts by naming and requiring blocks. Log resulting scripts and output. Re-run scripts.
Access the most powerful time series database as a service
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of word-to-markdown or a related project?
Word to Markdown converter
A Ruby gem to liberate content from the jail that is Word documents
Our default content publishing workflow is terribly broken. We've all been trained to make paper, yet today, content authored once is more commonly consumed in multiple formats, and rarely, if ever, does it embody physical form. Put another way, our go-to content authoring workflow remains relatively unchanged since it was conceived in the early 80s.
I'm asked regularly by government employees — knowledge workers who fire up a desktop word processor as the first step to any project — for an automated pipeline to convert Microsoft Word documents to Markdown, the lingua franca of the internet, but as my recent foray into building just such a converter proves, it's not that simple.
Markdown isn't just an alternative format. Markdown forces you to write for the web.
Just want to convert a Microsoft Word (or Google) document to Markdown?
You can use this hosted service (or check out its source).
You'll need to install LibreOffice. Then:
gem install word-to-markdown
file = WordToMarkdown.new("/path/to/document.docx") => <WordToMarkdown path="/path/to/document.docx"> file.to_s => "# Test\n\n This is a test" file.document.tree => <Nokogiri Document>
Command line usage
Once you've installed the gem, it's just:
$ w2m path/to/document.docx
Outputs the resulting markdown to stdout
- Numbered lists
- Unnumbered lists
- Nested lists
- Explicit headings (e.g., selected as "Heading 1" or "Heading 2")
- Implicit headings (e.g., text with a larger font size relative to paragraph text)
Requirements and configuration
soffice a command line interface to LibreOffice that works on Linux, Mac, and Windows. To install soffice, see the LibreOffice documentation.
First, create the
Gemfile.lock by installing the dependencies:
Everything you need to run the executable locally:
docker-compose build docker-compose run --rm app bundle exec w2m --help docker-compose run --rm app bundle exec w2m test/fixtures/em.docx
Word-to-markdown-server contains a lightweight server for converting Word Documents as a service. A live version runs at word2md.com.