<commit_before># RbST

A Ruby gem for processing
[reStructuredText](https://en.wikipedia.org/wiki/ReStructuredText) via Python's
[Docutils](https://pypi.org/project/docutils/).

## Installation

Python 2.3+ (or 3.3+) is required.

RbST is available on [RubyGems.org](https://rubygems.org/gems/RbST).

```bash
gem install RbST
```

## Usage

```ruby
require 'rbst'
@html = RbST.new('/some/file.rst').to_html
# or
@latex = RbST.new('*hello*').to_latex
```

This takes the reStructuredText formatted file and converts it to either HTML
or LaTeX. The first argument can be either a file or a string.

You can also use the `convert` class method to output HTML:
<commit_msg>Update installation instructions in README.md.<commit_after># RbST

A Ruby gem for processing
[reStructuredText](https://en.wikipedia.org/wiki/ReStructuredText) via Python's
[Docutils](https://pypi.org/project/docutils/).

## Installation

Python 2.3+ (or 3.3+) is required.

RbST is available on [RubyGems](https://rubygems.org/gems/RbST):

```bash
gem install RbST
```

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

```ruby
gem 'RbST'
```

Then run `bundle install`

## Usage

```ruby
require 'rbst'
@html = RbST.new('/some/file.rst').to_html
# or
@latex = RbST.new('*hello*').to_latex
```

This takes the reStructuredText formatted file and converts it to either HTML
or LaTeX. The first argument can be either a file or a string.

You can also use the `convert` class method to output HTML:

{'fraction_non_alphanumeric': 0.13715046604527298, 'fraction_numerical': 0.005326231691078562, 'mean_word_length': 4.566666666666666, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 7, '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': '7161465', 'n_tokens_mistral': 560, 'n_tokens_neox': 511, 'n_words': 165}