Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,9 @@ module.exports = class Flatten
type: 'code'
html: @tagToHtml tag, id
when 'ul', 'ol', 'dl'
type = if tag.name in ['ul', 'ol'] then tag.name else 'list'
results.push
type: 'list'
type: type
html: @tagToHtml tag, id
when 'blockquote'
results.push
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"grunt-mocha-phantomjs": "^4.0.0",
"grunt-mocha-test": "^0.13.2",
"mocha": "^3.1.2",
"thegrid-apidocs": "^0.1.19",
"thegrid-apidocs": "^0.1.23",
"tv4": "^1.2.7"
}
}
8 changes: 4 additions & 4 deletions spec/Flatten.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ describe 'Flatten', ->
items: [
id: '6010f3ac-63f2-4407-a65d-9d6b7e9a40f2'
content: [
type: 'list'
type: 'ul'
html: '<ul><li>Hello world<ul><li>Foo</li></ul></li><li>Foo bar</li></ul>'
]
]
Expand Down Expand Up @@ -429,7 +429,7 @@ describe 'Flatten', ->
items: [
id: '6010f3ac-63f2-4407-a65d-9d6b7e9a40f2'
content: [
type: 'list'
type: 'ul'
html: '<ul><li>Hello world<ul><li>Foo</li></ul></li><li>Foo bar</li></ul>'
]
]
Expand Down Expand Up @@ -469,7 +469,7 @@ describe 'Flatten', ->
items: [
id: '6010f3ac-63f2-4407-a65d-9d6b7e9a40f2'
content: [
type: 'list'
type: 'ul'
html: '<ul><li>Hello world<ul><li>Foo</li></ul></li><li>Foo bar</li></ul>'
]
]
Expand Down Expand Up @@ -575,7 +575,7 @@ describe 'Flatten', ->
html: "<p>three<br>four</p>"
text: 'three four'
,
type: 'list'
type: 'ul'
html: "<ul><li>br at end</li></ul>"
,
type: 'text'
Expand Down