From 8bdfe7a7e86b9aa580504108c7a5a7565c2cd476 Mon Sep 17 00:00:00 2001 From: vswamidass Date: Fri, 6 Sep 2024 07:15:50 -0700 Subject: [PATCH] fix --- app/helpers/markdown_helper.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/helpers/markdown_helper.rb b/app/helpers/markdown_helper.rb index 77ffdab..2dc38c5 100644 --- a/app/helpers/markdown_helper.rb +++ b/app/helpers/markdown_helper.rb @@ -24,8 +24,9 @@ def link(link, _title, content) end def codespan(quote) - %(#{escape_html(quote.gsub("\n", - ''))}) + return '' if quote.nil? # Return an empty string if quote is nil + + %(#{escape_html(quote.gsub("\n", ''))}) end def block_code(code, _language)