summaryrefslogtreecommitdiff
path: root/lib/gitlab/markdown.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-08-12 22:45:16 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-08-12 23:32:16 -0400
commit907860ed3d6f1a9865026b3028c48c69b1b591ee (patch)
treed444d70b0797c8a962e337bfd715758102fb9744 /lib/gitlab/markdown.rb
parent7d1c06793eb2e2bdf625198be98c0bc10d8164cc (diff)
downloadgitlab-ce-907860ed3d6f1a9865026b3028c48c69b1b591ee.tar.gz
Remove the `gfm_with_options` helperrs-remove-gfm_with_options
It was redundant because `gfm` also took options.
Diffstat (limited to 'lib/gitlab/markdown.rb')
-rw-r--r--lib/gitlab/markdown.rb12
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/gitlab/markdown.rb b/lib/gitlab/markdown.rb
index 889decc9b48..9f6e19a09fd 100644
--- a/lib/gitlab/markdown.rb
+++ b/lib/gitlab/markdown.rb
@@ -25,21 +25,11 @@ module Gitlab
# Public: Parse the provided text with GitLab-Flavored Markdown
#
# text - the source text
- # options - options
- # html_options - extra options for the reference links as given to link_to
- def gfm(text, options = {}, html_options = {})
- gfm_with_options(text, options, html_options)
- end
-
- # Public: Parse the provided text with GitLab-Flavored Markdown
- #
- # text - the source text
# options - A Hash of options used to customize output (default: {}):
# :xhtml - output XHTML instead of HTML
# :reference_only_path - Use relative path for reference links
- # project - the project
# html_options - extra options for the reference links as given to link_to
- def gfm_with_options(text, options = {}, html_options = {})
+ def gfm(text, options = {}, html_options = {})
return text if text.nil?
# Duplicate the string so we don't alter the original, then call to_str