Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vswamidass-sfdc committed Sep 6, 2024
1 parent 82dcfb9 commit 8bdfe7a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/helpers/markdown_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ def link(link, _title, content)
end

def codespan(quote)
%(<code class="text-sm bg-stone-800 rounded text-amber-200 border-stone-500 border m-1 p-1">#{escape_html(quote.gsub("\n",
''))}</code>)
return '' if quote.nil? # Return an empty string if quote is nil

%(<code class="text-sm bg-stone-800 rounded text-amber-200 border-stone-500 border m-1 p-1">#{escape_html(quote.gsub("\n", ''))}</code>)
end

def block_code(code, _language)
Expand Down

0 comments on commit 8bdfe7a

Please sign in to comment.