Sha256: 7e41ad1985d9582bbf69af8f2a124466ed8774807c29865ab7f4c24aaa7d802a

Contents?: true

Size: 251 Bytes

Versions: 4

Compression:

Stored size: 251 Bytes

Contents

module Storyblok::Richtext
  module Marks
    class Anchor < Mark

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

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