Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
96c68c50
Commit
96c68c50
authored
Jun 15, 2016
by
http://jneen.net/
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deprecate @anchorlinenos
parent
7d456ad4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
10 deletions
+0
-10
lib/rouge/formatters/html_gitlab.rb
lib/rouge/formatters/html_gitlab.rb
+0
-10
No files found.
lib/rouge/formatters/html_gitlab.rb
View file @
96c68c50
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment