File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -342,8 +342,9 @@ module.exports = class Flatten
342
342
type : ' code'
343
343
html : @ tagToHtml tag, id
344
344
when ' ul' , ' ol' , ' dl'
345
+ type = if tag .name in [' ul' , ' ol' ] then tag .name else ' list'
345
346
results .push
346
- type : ' list '
347
+ type : type
347
348
html : @ tagToHtml tag, id
348
349
when ' blockquote'
349
350
results .push
Original file line number Diff line number Diff line change @@ -393,7 +393,7 @@ describe 'Flatten', ->
393
393
items : [
394
394
id : ' 6010f3ac-63f2-4407-a65d-9d6b7e9a40f2'
395
395
content : [
396
- type : ' list '
396
+ type : ' ul '
397
397
html : ' <ul><li>Hello world<ul><li>Foo</li></ul></li><li>Foo bar</li></ul>'
398
398
]
399
399
]
@@ -429,7 +429,7 @@ describe 'Flatten', ->
429
429
items : [
430
430
id : ' 6010f3ac-63f2-4407-a65d-9d6b7e9a40f2'
431
431
content : [
432
- type : ' list '
432
+ type : ' ul '
433
433
html : ' <ul><li>Hello world<ul><li>Foo</li></ul></li><li>Foo bar</li></ul>'
434
434
]
435
435
]
@@ -469,7 +469,7 @@ describe 'Flatten', ->
469
469
items : [
470
470
id : ' 6010f3ac-63f2-4407-a65d-9d6b7e9a40f2'
471
471
content : [
472
- type : ' list '
472
+ type : ' ul '
473
473
html : ' <ul><li>Hello world<ul><li>Foo</li></ul></li><li>Foo bar</li></ul>'
474
474
]
475
475
]
@@ -575,7 +575,7 @@ describe 'Flatten', ->
575
575
html : " <p>three<br>four</p>"
576
576
text : ' three four'
577
577
,
578
- type : ' list '
578
+ type : ' ul '
579
579
html : " <ul><li>br at end</li></ul>"
580
580
,
581
581
type : ' text'
You can’t perform that action at this time.
0 commit comments