lib/storyblok/richtext/html_renderer/marks/italic.rb in storyblok-richtext-renderer-0.0.5 vs lib/storyblok/richtext/html_renderer/marks/italic.rb in storyblok-richtext-renderer-0.0.6
- old
+ new
@@ -1,10 +1,10 @@
module Storyblok::Richtext
module Marks
class Italic < Mark
def matching
- @node['type'] === 'italic'
+ ['italic', 'i', 'em'].include?(@node['type'])
end
def tag
'i'
end