We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b7fd28 commit 8b47b02Copy full SHA for 8b47b02
lib/kramdown/converter/odin_html.rb
@@ -8,8 +8,7 @@ module OdinHtml
8
EXTERNAL_LINK_ATTRIBUTES = { target: '_blank', rel: 'noopener noreferrer' }.freeze
9
10
def convert_img(element, _indent)
11
-
12
- return super if @stack.last.type == :a or element.attr['alt'] == ""
+ return super if @stack.last.type == :a || element.attr['alt'] == ''
13
14
attributes = { href: element.attr['src'] }.merge(EXTERNAL_LINK_ATTRIBUTES)
15
%(<a#{html_attributes(attributes)}>#{super}</a>)
0 commit comments