diff --git a/lib/repubmark/elems/footnote.rb b/lib/repubmark/elems/footnote.rb index 015a7a4..180701e 100644 --- a/lib/repubmark/elems/footnote.rb +++ b/lib/repubmark/elems/footnote.rb @@ -39,10 +39,10 @@ module Repubmark end result += %(#{link_text}) else - result += link_text + result += link_text.to_s end result += "\n" - result += @caption.to_html + result += @caption.to_html.to_s if alt_urls&.any? result += %[(#{ alt_urls.map do |alt_url|