asciidoctor 1.5.8 → 2.0.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +11 -0
- data/CHANGELOG.adoc +628 -45
- data/LICENSE +2 -1
- data/README-de.adoc +28 -38
- data/README-fr.adoc +30 -43
- data/README-jp.adoc +255 -201
- data/README-zh_CN.adoc +40 -44
- data/README.adoc +170 -143
- data/asciidoctor.gemspec +22 -34
- data/bin/asciidoctor +5 -4
- data/data/locale/attributes-ar.adoc +4 -3
- data/data/locale/attributes-be.adoc +23 -0
- data/data/locale/attributes-bg.adoc +4 -3
- data/data/locale/attributes-ca.adoc +6 -5
- data/data/locale/attributes-cs.adoc +4 -3
- data/data/locale/attributes-da.adoc +6 -5
- data/data/locale/attributes-de.adoc +6 -5
- data/data/locale/attributes-en.adoc +4 -4
- data/data/locale/attributes-es.adoc +6 -5
- data/data/locale/attributes-fa.adoc +4 -3
- data/data/locale/attributes-fi.adoc +4 -3
- data/data/locale/attributes-fr.adoc +8 -7
- data/data/locale/attributes-hu.adoc +4 -3
- data/data/locale/attributes-id.adoc +4 -3
- data/data/locale/attributes-it.adoc +6 -5
- data/data/locale/attributes-ja.adoc +4 -3
- data/data/locale/{attributes-kr.adoc → attributes-ko.adoc} +4 -3
- data/data/locale/attributes-nb.adoc +4 -3
- data/data/locale/attributes-nl.adoc +6 -5
- data/data/locale/attributes-nn.adoc +4 -3
- data/data/locale/attributes-pl.adoc +8 -7
- data/data/locale/attributes-pt.adoc +6 -5
- data/data/locale/attributes-pt_BR.adoc +6 -5
- data/data/locale/attributes-ro.adoc +4 -3
- data/data/locale/attributes-ru.adoc +6 -5
- data/data/locale/attributes-sr.adoc +4 -4
- data/data/locale/attributes-sr_Latn.adoc +4 -4
- data/data/locale/attributes-sv.adoc +4 -4
- data/data/locale/attributes-th.adoc +23 -0
- data/data/locale/attributes-tr.adoc +4 -3
- data/data/locale/attributes-uk.adoc +6 -5
- data/data/locale/attributes-vi.adoc +23 -0
- data/data/locale/attributes-zh_CN.adoc +4 -3
- data/data/locale/attributes-zh_TW.adoc +4 -3
- data/data/reference/syntax.adoc +296 -0
- data/data/stylesheets/asciidoctor-default.css +120 -114
- data/data/stylesheets/coderay-asciidoctor.css +15 -17
- data/lib/asciidoctor/abstract_block.rb +146 -140
- data/lib/asciidoctor/abstract_node.rb +152 -170
- data/lib/asciidoctor/attribute_list.rb +77 -89
- data/lib/asciidoctor/block.rb +29 -28
- data/lib/asciidoctor/callouts.rb +4 -2
- data/lib/asciidoctor/cli/invoker.rb +20 -24
- data/lib/asciidoctor/cli/options.rb +107 -96
- data/lib/asciidoctor/cli.rb +3 -2
- data/lib/asciidoctor/convert.rb +199 -0
- data/lib/asciidoctor/converter/composite.rb +40 -48
- data/lib/asciidoctor/converter/docbook5.rb +627 -644
- data/lib/asciidoctor/converter/html5.rb +1053 -951
- data/lib/asciidoctor/converter/manpage.rb +581 -532
- data/lib/asciidoctor/converter/template.rb +232 -271
- data/lib/asciidoctor/converter.rb +370 -185
- data/lib/asciidoctor/core_ext/float/truncate.rb +20 -0
- data/lib/asciidoctor/core_ext/hash/merge.rb +8 -0
- data/lib/asciidoctor/core_ext/match_data/names.rb +7 -0
- data/lib/asciidoctor/core_ext/nil_or_empty.rb +1 -0
- data/lib/asciidoctor/core_ext/regexp/is_match.rb +4 -2
- data/lib/asciidoctor/core_ext.rb +8 -17
- data/lib/asciidoctor/document.rb +503 -461
- data/lib/asciidoctor/extensions.rb +127 -174
- data/lib/asciidoctor/helpers.rb +184 -107
- data/lib/asciidoctor/inline.rb +9 -12
- data/lib/asciidoctor/list.rb +11 -29
- data/lib/asciidoctor/load.rb +119 -0
- data/lib/asciidoctor/logging.rb +22 -17
- data/lib/asciidoctor/parser.rb +673 -719
- data/lib/asciidoctor/path_resolver.rb +48 -33
- data/lib/asciidoctor/reader.rb +383 -338
- data/lib/asciidoctor/rouge_ext.rb +39 -0
- data/lib/asciidoctor/rx.rb +723 -0
- data/lib/asciidoctor/section.rb +17 -16
- data/lib/asciidoctor/stylesheets.rb +19 -37
- data/lib/asciidoctor/substitutors.rb +926 -1022
- data/lib/asciidoctor/syntax_highlighter/coderay.rb +88 -0
- data/lib/asciidoctor/syntax_highlighter/highlightjs.rb +34 -0
- data/lib/asciidoctor/syntax_highlighter/html_pipeline.rb +10 -0
- data/lib/asciidoctor/syntax_highlighter/prettify.rb +30 -0
- data/lib/asciidoctor/syntax_highlighter/pygments.rb +157 -0
- data/lib/asciidoctor/syntax_highlighter/rouge.rb +143 -0
- data/lib/asciidoctor/syntax_highlighter.rb +253 -0
- data/lib/asciidoctor/table.rb +152 -114
- data/lib/asciidoctor/timings.rb +7 -5
- data/lib/asciidoctor/version.rb +2 -1
- data/lib/asciidoctor/writer.rb +30 -0
- data/lib/asciidoctor.rb +266 -1340
- data/man/asciidoctor.1 +49 -47
- data/man/asciidoctor.adoc +54 -45
- metadata +50 -245
- data/CONTRIBUTING.adoc +0 -185
- data/Gemfile +0 -60
- data/Rakefile +0 -129
- data/bin/asciidoctor-safe +0 -15
- data/features/open_block.feature +0 -92
- data/features/pass_block.feature +0 -66
- data/features/step_definitions.rb +0 -49
- data/features/text_formatting.feature +0 -57
- data/features/xref.feature +0 -1039
- data/lib/asciidoctor/converter/base.rb +0 -59
- data/lib/asciidoctor/converter/docbook45.rb +0 -93
- data/lib/asciidoctor/converter/factory.rb +0 -226
- data/lib/asciidoctor/core_ext/1.8.7/base64/strict_encode64.rb +0 -6
- data/lib/asciidoctor/core_ext/1.8.7/concurrent/hash.rb +0 -5
- data/lib/asciidoctor/core_ext/1.8.7/hash/key.rb +0 -4
- data/lib/asciidoctor/core_ext/1.8.7/io/binread.rb +0 -6
- data/lib/asciidoctor/core_ext/1.8.7/io/write.rb +0 -5
- data/lib/asciidoctor/core_ext/1.8.7/string/chr.rb +0 -6
- data/lib/asciidoctor/core_ext/1.8.7/string/limit_bytesize.rb +0 -29
- data/lib/asciidoctor/core_ext/1.8.7/symbol/empty.rb +0 -6
- data/lib/asciidoctor/core_ext/1.8.7/symbol/length.rb +0 -6
- data/lib/asciidoctor/core_ext/string/limit_bytesize.rb +0 -10
- data/test/api_test.rb +0 -1240
- data/test/attribute_list_test.rb +0 -242
- data/test/attributes_test.rb +0 -1623
- data/test/blocks_test.rb +0 -3870
- data/test/converter_test.rb +0 -470
- data/test/document_test.rb +0 -1853
- data/test/extensions_test.rb +0 -1560
- data/test/fixtures/asciidoc_index.txt +0 -521
- data/test/fixtures/basic-docinfo-footer.html +0 -6
- data/test/fixtures/basic-docinfo-footer.xml +0 -8
- data/test/fixtures/basic-docinfo.html +0 -1
- data/test/fixtures/basic-docinfo.xml +0 -4
- data/test/fixtures/basic.asciidoc +0 -5
- data/test/fixtures/chapter-a.adoc +0 -3
- data/test/fixtures/child-include.adoc +0 -5
- data/test/fixtures/circle.svg +0 -9
- data/test/fixtures/custom-backends/erb/html5/block_paragraph.html.erb +0 -6
- data/test/fixtures/custom-backends/haml/docbook45/block_paragraph.xml.haml +0 -6
- data/test/fixtures/custom-backends/haml/html5/block_paragraph.html.haml +0 -3
- data/test/fixtures/custom-backends/haml/html5/block_sidebar.html.haml +0 -5
- data/test/fixtures/custom-backends/haml/html5-tweaks/block_paragraph.html.haml +0 -1
- data/test/fixtures/custom-backends/slim/docbook45/block_paragraph.xml.slim +0 -6
- data/test/fixtures/custom-backends/slim/html5/block_paragraph.html.slim +0 -3
- data/test/fixtures/custom-backends/slim/html5/block_sidebar.html.slim +0 -5
- data/test/fixtures/custom-docinfodir/basic-docinfo.html +0 -1
- data/test/fixtures/custom-docinfodir/docinfo.html +0 -1
- data/test/fixtures/docinfo-footer.html +0 -1
- data/test/fixtures/docinfo-footer.xml +0 -9
- data/test/fixtures/docinfo.html +0 -1
- data/test/fixtures/docinfo.xml +0 -3
- data/test/fixtures/doctime-localtime.adoc +0 -2
- data/test/fixtures/dot.gif +0 -0
- data/test/fixtures/encoding.asciidoc +0 -13
- data/test/fixtures/file-with-missing-include.adoc +0 -1
- data/test/fixtures/grandchild-include.adoc +0 -3
- data/test/fixtures/hello-asciidoctor.pdf +0 -69
- data/test/fixtures/include-file.asciidoc +0 -24
- data/test/fixtures/include-file.jsx +0 -8
- data/test/fixtures/include-file.ml +0 -3
- data/test/fixtures/include-file.xml +0 -5
- data/test/fixtures/lists.adoc +0 -96
- data/test/fixtures/master.adoc +0 -5
- data/test/fixtures/mismatched-end-tag.adoc +0 -7
- data/test/fixtures/other-chapters.adoc +0 -11
- data/test/fixtures/outer-include.adoc +0 -5
- data/test/fixtures/parent-include-restricted.adoc +0 -5
- data/test/fixtures/parent-include.adoc +0 -5
- data/test/fixtures/sample.asciidoc +0 -30
- data/test/fixtures/section-a.adoc +0 -4
- data/test/fixtures/stylesheets/custom.css +0 -3
- data/test/fixtures/subdir/index.adoc +0 -3
- data/test/fixtures/subdir/inner-include.adoc +0 -3
- data/test/fixtures/subdir/middle-include.adoc +0 -5
- data/test/fixtures/subs-docinfo.html +0 -2
- data/test/fixtures/subs.adoc +0 -6
- data/test/fixtures/tagged-class-enclosed.rb +0 -25
- data/test/fixtures/tagged-class.rb +0 -23
- data/test/fixtures/tip.gif +0 -0
- data/test/fixtures/unclosed-tag.adoc +0 -3
- data/test/fixtures/unexpected-end-tag.adoc +0 -4
- data/test/invoker_test.rb +0 -745
- data/test/links_test.rb +0 -855
- data/test/lists_test.rb +0 -5151
- data/test/logger_test.rb +0 -211
- data/test/manpage_test.rb +0 -660
- data/test/options_test.rb +0 -262
- data/test/paragraphs_test.rb +0 -562
- data/test/parser_test.rb +0 -742
- data/test/paths_test.rb +0 -395
- data/test/preamble_test.rb +0 -173
- data/test/reader_test.rb +0 -2161
- data/test/sections_test.rb +0 -3575
- data/test/substitutions_test.rb +0 -2066
- data/test/tables_test.rb +0 -2036
- data/test/test_helper.rb +0 -447
- data/test/text_test.rb +0 -309
data/test/attribute_list_test.rb
DELETED
@@ -1,242 +0,0 @@
|
|
1
|
-
# encoding: UTF-8
|
2
|
-
unless defined? ASCIIDOCTOR_PROJECT_DIR
|
3
|
-
$: << File.dirname(__FILE__); $:.uniq!
|
4
|
-
require 'test_helper'
|
5
|
-
end
|
6
|
-
|
7
|
-
context 'AttributeList' do
|
8
|
-
test 'collect unnamed attribute' do
|
9
|
-
attributes = {}
|
10
|
-
line = 'quote'
|
11
|
-
expected = {1 => 'quote'}
|
12
|
-
Asciidoctor::AttributeList.new(line).parse_into(attributes)
|
13
|
-
assert_equal expected, attributes
|
14
|
-
end
|
15
|
-
|
16
|
-
test 'collect unnamed attribute double-quoted' do
|
17
|
-
attributes = {}
|
18
|
-
line = '"quote"'
|
19
|
-
expected = {1 => 'quote'}
|
20
|
-
Asciidoctor::AttributeList.new(line).parse_into(attributes)
|
21
|
-
assert_equal expected, attributes
|
22
|
-
end
|
23
|
-
|
24
|
-
test 'collect empty unnamed attribute double-quoted' do
|
25
|
-
attributes = {}
|
26
|
-
line = '""'
|
27
|
-
expected = {1 => ''}
|
28
|
-
Asciidoctor::AttributeList.new(line).parse_into(attributes)
|
29
|
-
assert_equal expected, attributes
|
30
|
-
end
|
31
|
-
|
32
|
-
test 'collect unnamed attribute double-quoted containing escaped quote' do
|
33
|
-
attributes = {}
|
34
|
-
line = '"ba\"zaar"'
|
35
|
-
expected = {1 => 'ba"zaar'}
|
36
|
-
Asciidoctor::AttributeList.new(line).parse_into(attributes)
|
37
|
-
assert_equal expected, attributes
|
38
|
-
end
|
39
|
-
|
40
|
-
test 'collect unnamed attribute single-quoted' do
|
41
|
-
attributes = {}
|
42
|
-
line = '\'quote\''
|
43
|
-
expected = {1 => 'quote'}
|
44
|
-
Asciidoctor::AttributeList.new(line).parse_into(attributes)
|
45
|
-
assert_equal expected, attributes
|
46
|
-
end
|
47
|
-
|
48
|
-
test 'collect empty unnamed attribute single-quoted' do
|
49
|
-
attributes = {}
|
50
|
-
line = '\'\''
|
51
|
-
expected = {1 => ''}
|
52
|
-
Asciidoctor::AttributeList.new(line).parse_into(attributes)
|
53
|
-
assert_equal expected, attributes
|
54
|
-
end
|
55
|
-
|
56
|
-
test 'collect isolated single quote positional attribute' do
|
57
|
-
attributes = {}
|
58
|
-
line = '\''
|
59
|
-
expected = { 1 => '\'' }
|
60
|
-
doc = empty_document
|
61
|
-
def doc.apply_subs *args
|
62
|
-
fail 'apply_subs should not be called'
|
63
|
-
end
|
64
|
-
Asciidoctor::AttributeList.new(line, doc).parse_into(attributes)
|
65
|
-
assert_equal expected, attributes
|
66
|
-
end
|
67
|
-
|
68
|
-
test 'collect isolated single quote attribute value' do
|
69
|
-
attributes = {}
|
70
|
-
line = 'name=\''
|
71
|
-
expected = { 'name' => '\'' }
|
72
|
-
doc = empty_document
|
73
|
-
def doc.apply_subs *args
|
74
|
-
fail 'apply_subs should not be called'
|
75
|
-
end
|
76
|
-
Asciidoctor::AttributeList.new(line, doc).parse_into(attributes)
|
77
|
-
assert_equal expected, attributes
|
78
|
-
end
|
79
|
-
|
80
|
-
test 'collect attribute value as is if it has only leading single quote' do
|
81
|
-
attributes = {}
|
82
|
-
line = 'name=\'{val}'
|
83
|
-
expected = { 'name' => '\'{val}' }
|
84
|
-
doc = empty_document :attributes => { 'val' => 'val' }
|
85
|
-
def doc.apply_subs *args
|
86
|
-
fail 'apply_subs should not be called'
|
87
|
-
end
|
88
|
-
Asciidoctor::AttributeList.new(line, doc).parse_into(attributes)
|
89
|
-
assert_equal expected, attributes
|
90
|
-
end
|
91
|
-
|
92
|
-
test 'collect unnamed attribute single-quoted containing escaped quote' do
|
93
|
-
attributes = {}
|
94
|
-
line = '\'ba\\\'zaar\''
|
95
|
-
expected = {1 => 'ba\'zaar'}
|
96
|
-
Asciidoctor::AttributeList.new(line).parse_into(attributes)
|
97
|
-
assert_equal expected, attributes
|
98
|
-
end
|
99
|
-
|
100
|
-
test 'collect unnamed attribute with dangling delimiter' do
|
101
|
-
attributes = {}
|
102
|
-
line = 'quote , '
|
103
|
-
expected = {1 => 'quote'}
|
104
|
-
Asciidoctor::AttributeList.new(line).parse_into(attributes)
|
105
|
-
assert_equal expected, attributes
|
106
|
-
end
|
107
|
-
|
108
|
-
test 'collect unnamed attribute in second position after empty attribute' do
|
109
|
-
attributes = {}
|
110
|
-
line = ', John Smith'
|
111
|
-
expected = {1 => nil, 2 => 'John Smith'}
|
112
|
-
Asciidoctor::AttributeList.new(line).parse_into(attributes)
|
113
|
-
assert_equal expected, attributes
|
114
|
-
end
|
115
|
-
|
116
|
-
test 'collect unnamed attributes' do
|
117
|
-
attributes = {}
|
118
|
-
line = 'first, second one, third'
|
119
|
-
expected = {1 => 'first', 2 => 'second one', 3 => 'third'}
|
120
|
-
Asciidoctor::AttributeList.new(line).parse_into(attributes)
|
121
|
-
assert_equal expected, attributes
|
122
|
-
end
|
123
|
-
|
124
|
-
test 'collect named attribute' do
|
125
|
-
attributes = {}
|
126
|
-
line = 'foo=bar'
|
127
|
-
expected = {'foo' => 'bar'}
|
128
|
-
Asciidoctor::AttributeList.new(line).parse_into(attributes)
|
129
|
-
assert_equal expected, attributes
|
130
|
-
end
|
131
|
-
|
132
|
-
test 'collect named attribute double-quoted' do
|
133
|
-
attributes = {}
|
134
|
-
line = 'foo="bar"'
|
135
|
-
expected = {'foo' => 'bar'}
|
136
|
-
Asciidoctor::AttributeList.new(line).parse_into(attributes)
|
137
|
-
assert_equal expected, attributes
|
138
|
-
end
|
139
|
-
|
140
|
-
test 'collect named attribute with double-quoted empty value' do
|
141
|
-
attributes = {}
|
142
|
-
line = 'height=100,caption="",link="images/octocat.png"'
|
143
|
-
expected = {'height' => '100', 'caption' => '', 'link' => 'images/octocat.png'}
|
144
|
-
Asciidoctor::AttributeList.new(line).parse_into(attributes)
|
145
|
-
assert_equal expected, attributes
|
146
|
-
end
|
147
|
-
|
148
|
-
test 'collect named attribute single-quoted' do
|
149
|
-
attributes = {}
|
150
|
-
line = 'foo=\'bar\''
|
151
|
-
expected = {'foo' => 'bar'}
|
152
|
-
Asciidoctor::AttributeList.new(line).parse_into(attributes)
|
153
|
-
assert_equal expected, attributes
|
154
|
-
end
|
155
|
-
|
156
|
-
test 'collect named attribute with single-quoted empty value' do
|
157
|
-
attributes = {}
|
158
|
-
line = %(height=100,caption='',link='images/octocat.png')
|
159
|
-
expected = {'height' => '100', 'caption' => '', 'link' => 'images/octocat.png'}
|
160
|
-
Asciidoctor::AttributeList.new(line).parse_into(attributes)
|
161
|
-
assert_equal expected, attributes
|
162
|
-
end
|
163
|
-
|
164
|
-
test 'collect single named attribute with empty value' do
|
165
|
-
attributes = {}
|
166
|
-
line = 'foo='
|
167
|
-
expected = {'foo' => ''}
|
168
|
-
Asciidoctor::AttributeList.new(line).parse_into(attributes)
|
169
|
-
assert_equal expected, attributes
|
170
|
-
end
|
171
|
-
|
172
|
-
test 'collect single named attribute with empty value when followed by other attributes' do
|
173
|
-
attributes = {}
|
174
|
-
line = 'foo=,bar=baz'
|
175
|
-
expected = {'foo' => '', 'bar' => 'baz'}
|
176
|
-
Asciidoctor::AttributeList.new(line).parse_into(attributes)
|
177
|
-
assert_equal expected, attributes
|
178
|
-
end
|
179
|
-
|
180
|
-
test 'collect named attributes unquoted' do
|
181
|
-
attributes = {}
|
182
|
-
line = 'first=value, second=two, third=3'
|
183
|
-
expected = {'first' => 'value', 'second' => 'two', 'third' => '3'}
|
184
|
-
Asciidoctor::AttributeList.new(line).parse_into(attributes)
|
185
|
-
assert_equal expected, attributes
|
186
|
-
end
|
187
|
-
|
188
|
-
test 'collect named attributes quoted' do
|
189
|
-
attributes = {}
|
190
|
-
line = %(first='value', second="value two", third=three)
|
191
|
-
expected = {'first' => 'value', 'second' => 'value two', 'third' => 'three'}
|
192
|
-
Asciidoctor::AttributeList.new(line).parse_into(attributes)
|
193
|
-
assert_equal expected, attributes
|
194
|
-
end
|
195
|
-
|
196
|
-
test 'collect named attributes quoted containing non-semantic spaces' do
|
197
|
-
attributes = {}
|
198
|
-
line = %( first = 'value', second ="value two" , third= three )
|
199
|
-
expected = {'first' => 'value', 'second' => 'value two', 'third' => 'three'}
|
200
|
-
Asciidoctor::AttributeList.new(line).parse_into(attributes)
|
201
|
-
assert_equal expected, attributes
|
202
|
-
end
|
203
|
-
|
204
|
-
test 'collect mixed named and unnamed attributes' do
|
205
|
-
attributes = {}
|
206
|
-
line = %(first, second="value two", third=three, Sherlock Holmes)
|
207
|
-
expected = {1 => 'first', 'second' => 'value two', 'third' => 'three', 4 => 'Sherlock Holmes'}
|
208
|
-
Asciidoctor::AttributeList.new(line).parse_into(attributes)
|
209
|
-
assert_equal expected, attributes
|
210
|
-
end
|
211
|
-
|
212
|
-
test 'collect options attribute' do
|
213
|
-
attributes = {}
|
214
|
-
line = %(quote, options='opt1,opt2 , opt3')
|
215
|
-
expected = {1 => 'quote', 'options' => 'opt1,opt2,opt3', 'opt1-option' => '', 'opt2-option' => '', 'opt3-option' => ''}
|
216
|
-
Asciidoctor::AttributeList.new(line).parse_into(attributes)
|
217
|
-
assert_equal expected, attributes
|
218
|
-
end
|
219
|
-
|
220
|
-
test 'collect opts attribute as options' do
|
221
|
-
attributes = {}
|
222
|
-
line = %(quote, opts='opt1,opt2 , opt3')
|
223
|
-
expected = {1 => 'quote', 'options' => 'opt1,opt2,opt3', 'opt1-option' => '', 'opt2-option' => '', 'opt3-option' => ''}
|
224
|
-
Asciidoctor::AttributeList.new(line).parse_into(attributes)
|
225
|
-
assert_equal expected, attributes
|
226
|
-
end
|
227
|
-
|
228
|
-
test 'collect and rekey unnamed attributes' do
|
229
|
-
attributes = {}
|
230
|
-
line = 'first, second one, third, fourth'
|
231
|
-
expected = {1 => 'first', 2 => 'second one', 3 => 'third', 4 => 'fourth', 'a' => 'first', 'b' => 'second one', 'c' => 'third'}
|
232
|
-
Asciidoctor::AttributeList.new(line).parse_into(attributes, ['a', 'b', 'c'])
|
233
|
-
assert_equal expected, attributes
|
234
|
-
end
|
235
|
-
|
236
|
-
test 'rekey positional attributes' do
|
237
|
-
attributes = {1 => 'source', 2 => 'java'}
|
238
|
-
expected = {1 => 'source', 2 => 'java', 'style' => 'source', 'language' => 'java'}
|
239
|
-
Asciidoctor::AttributeList.rekey(attributes, ['style', 'language', 'linenums'])
|
240
|
-
assert_equal expected, attributes
|
241
|
-
end
|
242
|
-
end
|