class Storyblok::Richtext::Marks::Styled

Public Instance Methods

matching() click to toggle source
# File lib/storyblok/richtext/html_renderer/marks/styled.rb, line 5
def matching
  @node['type'] === 'styled'
end
tag() click to toggle source
# File lib/storyblok/richtext/html_renderer/marks/styled.rb, line 9
def tag
  [{
    tag: "span",
    attrs: @node['attrs']
  }]
end