Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axilleas@axilleas.me>2016-11-23 14:30:51 +0300
committerAchilleas Pipinellis <axilleas@axilleas.me>2016-11-23 14:30:51 +0300
commit0a22f128a17076b5a65f976afcbd20cd292a69a3 (patch)
treedcc46389cc35ac864a7f098c7560cef5c5edb3f2 /lib
parentd92e8850791bb5f4dfc4ea96566ac7e402bdcdcd (diff)
Revert "Add anchor links to all headers."
This reverts commit b43087fb68934db1c9f992b9d580562742ef7dc0.
Diffstat (limited to 'lib')
-rw-r--r--lib/helpers_.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/helpers_.rb b/lib/helpers_.rb
index a136ea99..41139639 100644
--- a/lib/helpers_.rb
+++ b/lib/helpers_.rb
@@ -11,12 +11,6 @@ require 'rouge/plugins/redcarpet'
class HTML < Redcarpet::Render::HTML
include Rouge::Plugins::Redcarpet
- def header(text, header_level)
- anchor = text.downcase.strip.split(" ").join("-")
-
- "<h#{header_level} id='#{anchor}'>#{text} <a class='anchor' href='##{anchor}' title='Permalink'>&para;</a></h#{header_level}>"
- end
-
def image(link, title, alt_text)
%(<a target="_blank" href="#{link}"><img src="#{link}" title="#{title}" alt="#{alt_text}"/></a>)
end