Low commit activity in last 3 years
Serializer for Slate documents written in Ruby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 13.0
~> 3.0
~> 2.2

Runtime

~> 1.11
 Project Readme

SlateSerializer

SlateSerializer de- and serializer text and html to Slate document values in Ruby.

Installation

Add this line to your application's Gemfile:

gem 'slate_serializer'

And then execute:

$ bundle

Or install it yourself as:

$ gem install slate_serializer

Usage

To convert between plain text and Slate document use:

$ SlateSerializer::Plain.serializer({ document: {...}}) => text
$ SlateSerializer::Plain.deserializer(text) => { document: {...}}

To convert between html and Slate document use:

$ SlateSerializer::Html.deserializer(html) => { document: {...}}

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/wesleystam/slate_serializer.