{"action":"created","issue":{"url":"https://api.github.com/repos/showdownjs/showdown/issues/142","labels_url":"https://api.github.com/repos/showdownjs/showdown/issues/142/labels{/name}","comments_url":"https://api.github.com/repos/showdownjs/showdown/issues/142/comments","events_url":"https://api.github.com/repos/showdownjs/showdown/issues/142/events","html_url":"https://github.com/showdownjs/showdown/issues/142","id":62194391,"number":142,"title":"Odd behaviour for multiple consecutive lists","user":{"login":"ErisDS","id":101513,"avatar_url":"https://avatars.githubusercontent.com/u/101513?v=3","gravatar_id":"","url":"https://api.github.com/users/ErisDS","html_url":"https://github.com/ErisDS","followers_url":"https://api.github.com/users/ErisDS/followers","following_url":"https://api.github.com/users/ErisDS/following{/other_user}","gists_url":"https://api.github.com/users/ErisDS/gists{/gist_id}","starred_url":"https://api.github.com/users/ErisDS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ErisDS/subscriptions","organizations_url":"https://api.github.com/users/ErisDS/orgs","repos_url":"https://api.github.com/users/ErisDS/repos","events_url":"https://api.github.com/users/ErisDS/events{/privacy}","received_events_url":"https://api.github.com/users/ErisDS/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/showdownjs/showdown/labels/Bug","name":"Bug","color":"fc2929"},{"url":"https://api.github.com/repos/showdownjs/showdown/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"tivie","id":1608730,"avatar_url":"https://avatars.githubusercontent.com/u/1608730?v=3","gravatar_id":"","url":"https://api.github.com/users/tivie","html_url":"https://github.com/tivie","followers_url":"https://api.github.com/users/tivie/followers","following_url":"https://api.github.com/users/tivie/following{/other_user}","gists_url":"https://api.github.com/users/tivie/gists{/gist_id}","starred_url":"https://api.github.com/users/tivie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tivie/subscriptions","organizations_url":"https://api.github.com/users/tivie/orgs","repos_url":"https://api.github.com/users/tivie/repos","events_url":"https://api.github.com/users/tivie/events{/privacy}","received_events_url":"https://api.github.com/users/tivie/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-03-16T20:04:24Z","updated_at":"2015-04-30T00:29:18Z","closed_at":null,"body":"![](http://puu.sh/gD3FW.png)\r\n\r\nShowdown will convert a bulleted list, followed by an ordered list, into one big ordered list with paragraphs in certain items. I believe that this is not really what most people would expect the output to be.\r\n\r\nAccording to [Babelmark](http://johnmacfarlane.net/babelmark2/?normalize=1&text=*+List+Item%0A*+Other+List+Item%0A%0A1.+New+list%0A2.+More+list+items) this behaviour comes from the original Markdown.pl library, however the majority of markdown libraries tested by Babelmark have changed the behaviour to output the two lists as a bulleted list followed by an ordered list.\r\n\r\nYou can also see in [Babelmark](http://johnmacfarlane.net/babelmark2/?normalize=1&text=1.+Item+1%0A2.+Item+2%0A%0A*+Item%0A*+Item) that the same is true for the inverse - the majority of markdown libraries have changed away from the original behaviour.\r\n\r\nI realise changing this would be backwards incompatible, but I believe it's unlikely many people rely on the existing behaviour - therefore I'd like to propose the behaviour be changed to match the behaviour that Babelmark shows:\r\n\r\nThat is \r\n\r\n```\r\n* Item 1\r\n* Item 2\r\n\r\n1. Item 1\r\n2. Item 2\r\n```\r\n\r\nConverts to this in showdown currently:\r\n\r\n```\r\n<ul>\r\n    <li>Item 1</li>\r\n    <li>\r\n        <p>Item 2</p>\r\n    </li>\r\n    <li>\r\n        <p>Item 1</p>\r\n    </li>\r\n    <li>Item 2</li>\r\n</ul>\r\n```\r\n\r\nI propose it ought to output:\r\n\r\n```\r\n<ul>\r\n    <li>Item 1</li>\r\n    <li>Item 2</li>\r\n</ul>\r\n<ol>\r\n    <li>Item 1</li>\r\n    <li>Item 2</li>\r\n</ol>\r\n```"},"comment":{"url":"https://api.github.com/repos/showdownjs/showdown/issues/comments/97620222","html_url":"https://github.com/showdownjs/showdown/issues/142#issuecomment-97620222","issue_url":"https://api.github.com/repos/showdownjs/showdown/issues/142","id":97620222,"user":{"login":"pdeschen","id":153048,"avatar_url":"https://avatars.githubusercontent.com/u/153048?v=3","gravatar_id":"","url":"https://api.github.com/users/pdeschen","html_url":"https://github.com/pdeschen","followers_url":"https://api.github.com/users/pdeschen/followers","following_url":"https://api.github.com/users/pdeschen/following{/other_user}","gists_url":"https://api.github.com/users/pdeschen/gists{/gist_id}","starred_url":"https://api.github.com/users/pdeschen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdeschen/subscriptions","organizations_url":"https://api.github.com/users/pdeschen/orgs","repos_url":"https://api.github.com/users/pdeschen/repos","events_url":"https://api.github.com/users/pdeschen/events{/privacy}","received_events_url":"https://api.github.com/users/pdeschen/received_events","type":"User","site_admin":false},"created_at":"2015-04-30T00:29:18Z","updated_at":"2015-04-30T00:29:18Z","body":"@ErisDS I like your idea of `strict` mode. Or maybe `quirks` would be more appropriate. But then again, which of the rendering is the quirk one? :smile: "}}