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
Léo-Paul Géneau
gitlab-ce
Commits
6685cbeb
Commit
6685cbeb
authored
Mar 13, 2017
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document tag option and clarify spec
parent
68903277
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
lib/rouge/formatters/html_gitlab.rb
lib/rouge/formatters/html_gitlab.rb
+3
-4
spec/features/copy_as_gfm_spec.rb
spec/features/copy_as_gfm_spec.rb
+1
-1
No files found.
lib/rouge/formatters/html_gitlab.rb
View file @
6685cbeb
...
...
@@ -5,10 +5,9 @@ module Rouge
# Creates a new <tt>Rouge::Formatter::HTMLGitlab</tt> instance.
#
# [+linenostart+] The line number for the first line (default: 1).
def
initialize
(
linenostart:
1
,
tag:
nil
)
@linenostart
=
linenostart
@line_number
=
linenostart
# [+tag+] The tag (language) of the lexer used to generate the formatted tokens
def
initialize
(
tag:
nil
)
@line_number
=
1
@tag
=
tag
end
...
...
spec/features/copy_as_gfm_spec.rb
View file @
6685cbeb
...
...
@@ -543,7 +543,7 @@ describe 'Copy as GFM', feature: true, js: true do
end
context
'selecting multiple lines of text'
do
it
'copies as a code block'
do
it
'copies as a code block
with the correct language
'
do
verify
(
'.line[id="LC27"], .line[id="LC28"]'
,
...
...
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