Sha256: 1859244b267dc721b9dd2c320cb7c8ca591c5b5f6ba0899da9777a1413b47749
Contents?: true
Size: 619 Bytes
Versions: 2
Compression:
Stored size: 619 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 ```bash gem 'storyblok-richtext-renderer' ``` ### Rendering a richtext field ``` 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.2 | README.md |
storyblok-richtext-renderer-0.0.1 | README.md |