Commit 12626f02 authored by Douwe Maan's avatar Douwe Maan

Return strings where expected

parent 4f629dab
...@@ -45,7 +45,7 @@ module GitlabMarkdownHelper ...@@ -45,7 +45,7 @@ module GitlabMarkdownHelper
end end
def markdown(text, context = {}) def markdown(text, context = {})
return unless text.present? return "" unless text.present?
context.reverse_merge!( context.reverse_merge!(
path: @path, path: @path,
...@@ -62,7 +62,7 @@ module GitlabMarkdownHelper ...@@ -62,7 +62,7 @@ module GitlabMarkdownHelper
# TODO (rspeicher): Remove all usages of this helper and just call `markdown` # TODO (rspeicher): Remove all usages of this helper and just call `markdown`
# with a custom pipeline depending on the content being rendered # with a custom pipeline depending on the content being rendered
def gfm(text, options = {}) def gfm(text, options = {})
return unless text.present? return "" unless text.present?
options.reverse_merge!( options.reverse_merge!(
path: @path, path: @path,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment