Sha256: 248f0ceff90f061a914019b4971ea28a585ea42bfb64f82356b34472c9cbc86d

Contents?: true

Size: 214 Bytes

Versions: 10

Compression:

Stored size: 214 Bytes

Contents

module Storyblok::Richtext
  module Nodes
    class Heading < Node

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

      def tag
        "h#{@node['attrs']['level']}"
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
storyblok-richtext-renderer-0.0.10 lib/storyblok/richtext/html_renderer/nodes/heading.rb
storyblok-richtext-renderer-0.0.9 lib/storyblok/richtext/html_renderer/nodes/heading.rb
storyblok-richtext-renderer-0.0.8 lib/storyblok/richtext/html_renderer/nodes/heading.rb
storyblok-richtext-renderer-0.0.7 lib/storyblok/richtext/html_renderer/nodes/heading.rb
storyblok-richtext-renderer-0.0.6 lib/storyblok/richtext/html_renderer/nodes/heading.rb
storyblok-richtext-renderer-0.0.5 lib/storyblok/richtext/html_renderer/nodes/heading.rb
storyblok-richtext-renderer-0.0.4 lib/storyblok/richtext/html_renderer/nodes/heading.rb
storyblok-richtext-renderer-0.0.3 lib/storyblok/richtext/html_renderer/nodes/heading.rb
storyblok-richtext-renderer-0.0.2 lib/richtext/html_renderer/nodes/heading.rb
storyblok-richtext-renderer-0.0.1 lib/storyblok/richtext/html_renderer/nodes/heading.rb