lib/storyblok/richtext/html_renderer/marks/link.rb in storyblok-richtext-renderer-0.0.7 vs lib/storyblok/richtext/html_renderer/marks/link.rb in storyblok-richtext-renderer-0.0.8

- old
+ new

@@ -17,10 +17,10 @@ if attrs['linktype'].is_a?(String) and attrs['linktype'] == 'email' emailContainer = attrs['href'] attrs['href'] = "mailto:#{emailContainer}" end - if attrs['custom'] + if attrs['custom'].is_a?(Hash) for item in attrs['custom'] do attrs[item[0]] = item[1] end attrs.delete('custom') end