summaryrefslogtreecommitdiff
path: root/lib/rouge
diff options
context:
space:
mode:
authorhttp://jneen.net/ <jneen@jneen.net>2016-06-15 11:29:19 -0700
committerhttp://jneen.net/ <jneen@jneen.net>2016-07-14 10:08:14 -0700
commit96c68c503340bf650a545872cb4e8767a1b00f5b (patch)
treed00608c0a95571bed7a132b8ee925b60b64e2d42 /lib/rouge
parent7d456ad436c95a6b081da59cd61cc9672e1e3f5a (diff)
downloadgitlab-ce-96c68c503340bf650a545872cb4e8767a1b00f5b.tar.gz
deprecate @anchorlinenos
Diffstat (limited to 'lib/rouge')
-rw-r--r--lib/rouge/formatters/html_gitlab.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/rouge/formatters/html_gitlab.rb b/lib/rouge/formatters/html_gitlab.rb
index 3358ed6773e..2833dbddcf3 100644
--- a/lib/rouge/formatters/html_gitlab.rb
+++ b/lib/rouge/formatters/html_gitlab.rb
@@ -26,9 +26,6 @@ module Rouge
# [+lineanchorsid+] If lineanchors is true the name of the anchors can
# be changed with lineanchorsid to e.g. foo-linenumber
# (default: 'L').
- # [+anchorlinenos+] If set to true, will wrap line numbers in <tt><a></tt>
- # tags. Used in combination with linenos and lineanchors
- # (default: false).
# [+inline_theme+] Inline CSS styles for the <pre> tag (default: false).
def initialize(
nowrap: false,
@@ -37,7 +34,6 @@ module Rouge
linenostart: 1,
lineanchors: false,
lineanchorsid: 'L',
- anchorlinenos: false,
inline_theme: nil
)
@nowrap = nowrap
@@ -46,7 +42,6 @@ module Rouge
@linenostart = linenostart
@lineanchors = lineanchors
@lineanchorsid = lineanchorsid
- @anchorlinenos = anchorlinenos
@inline_theme = Theme.find(inline_theme).new if inline_theme.is_a?(String)
end
@@ -120,11 +115,6 @@ module Rouge
end
def wrap_linenos(numbers)
- if @anchorlinenos
- numbers.map! do |number|
- "<a href=\"##{@lineanchorsid}#{number}\">#{number}</a>"
- end
- end
numbers.join("\n")
end