|
201 | 201 | (expect $stdout.string).to eql expected |
202 | 202 | end |
203 | 203 |
|
| 204 | + it 'does not indent ul list markers with --nested-list-marker-indent set to 0' do |
| 205 | + the_source_file = scenario_file 'ul/nested-0-indent.md' |
| 206 | + expected = File.read (scenario_file 'ul/nested-0-indent.adoc'), mode: 'rb' |
| 207 | + (expect subject.run %W(-o - --nested-list-marker-indent=0 #{the_source_file})).to eql 0 |
| 208 | + (expect $stdout.string).to eql expected |
| 209 | + end |
| 210 | + |
| 211 | + it 'does not indent ol list markers with --nested-list-marker-indent set to 0' do |
| 212 | + the_source_file = scenario_file 'ol/nested-0-indent.md' |
| 213 | + expected = File.read (scenario_file 'ol/nested-0-indent.adoc'), mode: 'rb' |
| 214 | + (expect subject.run %W(-o - --nested-list-marker-indent=0 #{the_source_file})).to eql 0 |
| 215 | + (expect $stdout.string).to eql expected |
| 216 | + end |
| 217 | + |
| 218 | + it 'does indent ul list markers according to --nested-list-marker-indent configuration' do |
| 219 | + the_source_file = scenario_file 'ul/nested-3-indent.md' |
| 220 | + expected = File.read (scenario_file 'ul/nested-3-indent.adoc'), mode: 'rb' |
| 221 | + (expect subject.run %W(-o - --nested-list-marker-indent=3 #{the_source_file})).to eql 0 |
| 222 | + (expect $stdout.string).to eql expected |
| 223 | + end |
| 224 | + |
| 225 | + it 'does indent ol list markers according to --nested-list-marker-indent configuration' do |
| 226 | + the_source_file = scenario_file 'ol/nested-3-indent.md' |
| 227 | + expected = File.read (scenario_file 'ol/nested-3-indent.adoc'), mode: 'rb' |
| 228 | + (expect subject.run %W(-o - --nested-list-marker-indent=3 #{the_source_file})).to eql 0 |
| 229 | + (expect $stdout.string).to eql expected |
| 230 | + end |
| 231 | + |
204 | 232 | it 'shifts headings by offset when --heading-offset is used' do |
205 | 233 | the_source_file = scenario_file 'heading/offset.md' |
206 | 234 | expected = File.read (scenario_file 'heading/offset.adoc'), mode: 'rb' |
|
0 commit comments