Skip to content
Snippets Groups Projects
Commit 677101b9 authored by Toon Claes's avatar Toon Claes
Browse files

Make the `_unsafe` methods private

parent 310c3b21
No related branches found
No related tags found
1 merge request!8838Remove view fragment caching for project READMEs
Loading
Loading
@@ -128,18 +128,6 @@ module MarkupHelper
simple_format(text)
end
 
def markdown_unsafe(text, context = {})
Banzai.render(text, context)
end
def asciidoc_unsafe(text)
Gitlab::Asciidoc.render(text)
end
def other_markup_unsafe(file_name, text)
Gitlab::OtherMarkup.render(file_name, text)
end
# Returns the text necessary to reference `entity` across projects
#
# project - Project to reference
Loading
Loading
@@ -225,6 +213,18 @@ module MarkupHelper
end
end
 
def markdown_unsafe(text, context = {})
Banzai.render(text, context)
end
def asciidoc_unsafe(text)
Gitlab::Asciidoc.render(text)
end
def other_markup_unsafe(file_name, text)
Gitlab::OtherMarkup.render(file_name, text)
end
# Calls Banzai.post_process with some common context options
def banzai_postprocess(html, context = {})
return '' unless html.present?
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment