diff --git a/lib/govuk_tech_docs/tech_docs_html_renderer.rb b/lib/govuk_tech_docs/tech_docs_html_renderer.rb
index f9f2d614..423eed0b 100644
--- a/lib/govuk_tech_docs/tech_docs_html_renderer.rb
+++ b/lib/govuk_tech_docs/tech_docs_html_renderer.rb
@@ -19,8 +19,12 @@ def header(text, level)
%(#{text}\n)
end
- def image(link, *args)
- %(#{super})
+ def image(link, title, alt_text)
+ if alt_text
+ %(#{super})
+ else
+ super
+ end
end
def table(header, body)