Merge pull request #3787 from TWiStErRob/hl_lines
Merge pull request 3787
This commit is contained in:
commit
b4ac044c29
|
@ -64,7 +64,7 @@ eos
|
|||
if is_safe
|
||||
Hash[[
|
||||
[:startinline, opts.fetch(:startinline, nil)],
|
||||
[:hl_linenos, opts.fetch(:hl_linenos, nil)],
|
||||
[:hl_lines, opts.fetch(:hl_lines, nil)],
|
||||
[:linenos, opts.fetch(:linenos, nil)],
|
||||
[:encoding, opts.fetch(:encoding, 'utf-8')],
|
||||
[:cssclass, opts.fetch(:cssclass, nil)]
|
||||
|
|
|
@ -114,9 +114,9 @@ CONTENT
|
|||
assert_equal true, sanitized[:linenos]
|
||||
end
|
||||
|
||||
should "allow hl_linenos" do
|
||||
sanitized = @tag.sanitized_opts({:hl_linenos => %w[1 2 3 4]}, true)
|
||||
assert_equal %w[1 2 3 4], sanitized[:hl_linenos]
|
||||
should "allow hl_lines" do
|
||||
sanitized = @tag.sanitized_opts({:hl_lines => %w[1 2 3 4]}, true)
|
||||
assert_equal %w[1 2 3 4], sanitized[:hl_lines]
|
||||
end
|
||||
|
||||
should "allow cssclass" do
|
||||
|
|
Loading…
Reference in New Issue