We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66df4ad commit adc828bCopy full SHA for adc828b
lib/govuk_tech_docs/tech_docs_html_renderer.rb
@@ -20,7 +20,7 @@ def header(text, level)
20
end
21
22
def image(link, title, alt_text)
23
- if alt_text
+ if alt_text && !alt_text.strip.empty?
24
%(<a href="#{link}" rel="noopener noreferrer">#{super}</a>)
25
else
26
super
0 commit comments