Commit 6685cbeb authored by Douwe Maan's avatar Douwe Maan

Document tag option and clarify spec

parent 68903277
...@@ -5,10 +5,9 @@ module Rouge ...@@ -5,10 +5,9 @@ module Rouge
# Creates a new <tt>Rouge::Formatter::HTMLGitlab</tt> instance. # Creates a new <tt>Rouge::Formatter::HTMLGitlab</tt> instance.
# #
# [+linenostart+] The line number for the first line (default: 1). # [+tag+] The tag (language) of the lexer used to generate the formatted tokens
def initialize(linenostart: 1, tag: nil) def initialize(tag: nil)
@linenostart = linenostart @line_number = 1
@line_number = linenostart
@tag = tag @tag = tag
end end
......
...@@ -543,7 +543,7 @@ describe 'Copy as GFM', feature: true, js: true do ...@@ -543,7 +543,7 @@ describe 'Copy as GFM', feature: true, js: true do
end end
context 'selecting multiple lines of text' do 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( verify(
'.line[id="LC27"], .line[id="LC28"]', '.line[id="LC27"], .line[id="LC28"]',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment