Sha256: 6ab19f8e4e48eca8d519732584d4e571beef2d0df67911f0d9b50a5b479a950d

Contents?: true

Size: 652 Bytes

Versions: 2

Compression:

Stored size: 652 Bytes

Contents

# About

This is Storyblok's rendering service to render html from the data of the richtext field type. The renderer is also compatible with Prosemirror's json format.

## How to install

Add the gem to your Gemfile

```ruby
gem 'storyblok-richtext-renderer'
```

### Rendering a richtext field

```ruby
require 'storyblok/richtext'
renderer = Storyblok::Richtext::HtmlRenderer.new
renderer.render({'type' => 'doc', 'content' => [{'type' => 'paragraph', 'content' => [{'text' => 'Good', 'type' => 'text'}]}]})
# -> <p>Good</p>
```

### License

This project is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
storyblok-richtext-renderer-0.0.5 README.md
storyblok-richtext-renderer-0.0.4 README.md