# Contentful Rich Text Renderer [Contentful](https://www.contentful.com) provides a content infrastructure for digital teams to power content in websites, apps, and devices. Unlike a CMS, Contentful was built to integrate with the modern software stack. It offers a central hub for structured content, powerful management and delivery APIs, and a customizable web app that enable developers and content creators to ship digital products faster. This library provides rendering capabilities for the `RichText` field type. It is recommended to be used alongside the [Contentful Delivery SDK](https://www.github.com/contentful/contentful.rb). By default this library will serialize `RichText` fields into it's corresponding HTML representation. All behaviour can be overridden to serialize to different formats. ## Installation Install Contentful Rich Text Renderer from RubyGems: ```bash gem install rich_text_renderer ``` ## Usage Create a renderer: ```ruby require 'rich_text_renderer' renderer = RichTextRenderer::Renderer.new ``` Render your document: ```ruby renderer.render(document) ``` ## Using different renderers There are many cases in which HTML serialization is not what you want. Therefore, all renderers are overridable when creating a `RichTextRenderer`. Also, if you're planning to embed entries within your rich text, overriding the `'embedded-entry-block'` mapping is a must, as by default it only does `
#{entry.description}