Sha256: 58ba86e55b32778d77d5f7a4181c6b469b5b74b587d4e4f509ad2e4347016de4

Contents?: true

Size: 251 Bytes

Versions: 6

Compression:

Stored size: 251 Bytes

Contents

module Storyblok::Richtext
  module Marks
    class Styled < Mark

      def matching
        @node['type'] === 'styled'
      end

      def tag
        [{
          tag: "span",
          attrs: @node['attrs']
        }]
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
storyblok-richtext-renderer-0.0.10 lib/storyblok/richtext/html_renderer/marks/styled.rb
storyblok-richtext-renderer-0.0.9 lib/storyblok/richtext/html_renderer/marks/styled.rb
storyblok-richtext-renderer-0.0.8 lib/storyblok/richtext/html_renderer/marks/styled.rb
storyblok-richtext-renderer-0.0.7 lib/storyblok/richtext/html_renderer/marks/styled.rb
storyblok-richtext-renderer-0.0.6 lib/storyblok/richtext/html_renderer/marks/styled.rb
storyblok-richtext-renderer-0.0.5 lib/storyblok/richtext/html_renderer/marks/styled.rb