diff options
author | Achilleas Pipinellis <axilleas@axilleas.me> | 2016-11-23 14:30:51 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axilleas@axilleas.me> | 2016-11-23 14:30:51 +0300 |
commit | 0a22f128a17076b5a65f976afcbd20cd292a69a3 (patch) | |
tree | dcc46389cc35ac864a7f098c7560cef5c5edb3f2 /lib | |
parent | d92e8850791bb5f4dfc4ea96566ac7e402bdcdcd (diff) |
Revert "Add anchor links to all headers."
This reverts commit b43087fb68934db1c9f992b9d580562742ef7dc0.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/helpers_.rb | 6 |
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'>¶</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 |