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 |         if is_safe | ||||||
|           Hash[[ |           Hash[[ | ||||||
|             [:startinline, opts.fetch(:startinline, nil)], |             [:startinline, opts.fetch(:startinline, nil)], | ||||||
|             [:hl_linenos,  opts.fetch(:hl_linenos, nil)], |             [:hl_lines,    opts.fetch(:hl_lines, nil)], | ||||||
|             [:linenos,     opts.fetch(:linenos, nil)], |             [:linenos,     opts.fetch(:linenos, nil)], | ||||||
|             [:encoding,    opts.fetch(:encoding, 'utf-8')], |             [:encoding,    opts.fetch(:encoding, 'utf-8')], | ||||||
|             [:cssclass,    opts.fetch(:cssclass, nil)] |             [:cssclass,    opts.fetch(:cssclass, nil)] | ||||||
|  |  | ||||||
|  | @ -114,9 +114,9 @@ CONTENT | ||||||
|       assert_equal true, sanitized[:linenos] |       assert_equal true, sanitized[:linenos] | ||||||
|     end |     end | ||||||
| 
 | 
 | ||||||
|     should "allow hl_linenos" do |     should "allow hl_lines" do | ||||||
|       sanitized = @tag.sanitized_opts({:hl_linenos => %w[1 2 3 4]}, true) |       sanitized = @tag.sanitized_opts({:hl_lines => %w[1 2 3 4]}, true) | ||||||
|       assert_equal %w[1 2 3 4], sanitized[:hl_linenos] |       assert_equal %w[1 2 3 4], sanitized[:hl_lines] | ||||||
|     end |     end | ||||||
| 
 | 
 | ||||||
|     should "allow cssclass" do |     should "allow cssclass" do | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue