<commit_before># PandocRuby

PandocRuby is a wrapper for [Pandoc](http://johnmacfarlane.net/pandoc/), a
Haskell library with command line tools for converting one markup format to
another.

Pandoc can convert documents from a variety of formats including markdown,
reStructuredText, textile, HTML, DocBook, LaTeX, and MediaWiki markup to a
variety of other formats, including markdown, reStructuredText, HTML, LaTeX,
ConTeXt, PDF, RTF, DocBook XML, OpenDocument XML, ODT, GNU Texinfo, MediaWiki
markup, groff man pages, HTML slide shows, EPUB, Microsoft Word docx, and more.

## Installation

First, [install Pandoc](http://johnmacfarlane.net/pandoc/installing.html).

PandocRuby is available on [RubyGems](http://rubygems.org/gems/pandoc-ruby):

```bash
gem install pandoc-ruby
```

To install with [Bundler](https://bundler.io/), add the following to your
Gemfile:

```ruby
gem 'pandoc-ruby'
```

Then run `bundle install`

## Usage

```ruby
require 'pandoc-ruby'<commit_msg>Add travis status image to README.md.<commit_after># PandocRuby

PandocRuby is a wrapper for [Pandoc](http://johnmacfarlane.net/pandoc/), a
Haskell library with command line tools for converting one markup format to
another.

Pandoc can convert documents from a variety of formats including markdown,
reStructuredText, textile, HTML, DocBook, LaTeX, and MediaWiki markup to a
variety of other formats, including markdown, reStructuredText, HTML, LaTeX,
ConTeXt, PDF, RTF, DocBook XML, OpenDocument XML, ODT, GNU Texinfo, MediaWiki
markup, groff man pages, HTML slide shows, EPUB, Microsoft Word docx, and more.

[![Build Status](https://travis-ci.org/xwmx/pandoc-ruby.svg?branch=master)](https://travis-ci.org/xwmx/pandoc-ruby)

## Installation

First, [install Pandoc](http://johnmacfarlane.net/pandoc/installing.html).

PandocRuby is available on [RubyGems](http://rubygems.org/gems/pandoc-ruby):

```bash
gem install pandoc-ruby
```

To install with [Bundler](https://bundler.io/), add the following to your
Gemfile:

```ruby
gem 'pandoc-ruby'
```

Then run `bundle install`

## Usage

```ruby
require 'pandoc-ruby'
{'fraction_non_alphanumeric': 0.11360381861575179, 'fraction_numerical': 0.0, 'mean_word_length': 5.390243902439025, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '586002', 'n_tokens_mistral': 764, 'n_tokens_neox': 698, 'n_words': 226}