{"action":"created","issue":{"url":"https://api.github.com/repos/gettalong/kramdown/issues/368","repository_url":"https://api.github.com/repos/gettalong/kramdown","labels_url":"https://api.github.com/repos/gettalong/kramdown/issues/368/labels{/name}","comments_url":"https://api.github.com/repos/gettalong/kramdown/issues/368/comments","events_url":"https://api.github.com/repos/gettalong/kramdown/issues/368/events","html_url":"https://github.com/gettalong/kramdown/issues/368","id":174402081,"number":368,"title":"Nested lists are too picky about whitespace","user":{"login":"chbrown","id":360279,"avatar_url":"https://avatars.githubusercontent.com/u/360279?v=3","gravatar_id":"","url":"https://api.github.com/users/chbrown","html_url":"https://github.com/chbrown","followers_url":"https://api.github.com/users/chbrown/followers","following_url":"https://api.github.com/users/chbrown/following{/other_user}","gists_url":"https://api.github.com/users/chbrown/gists{/gist_id}","starred_url":"https://api.github.com/users/chbrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chbrown/subscriptions","organizations_url":"https://api.github.com/users/chbrown/orgs","repos_url":"https://api.github.com/users/chbrown/repos","events_url":"https://api.github.com/users/chbrown/events{/privacy}","received_events_url":"https://api.github.com/users/chbrown/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gettalong/kramdown/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/gettalong/kramdown/labels/question","name":"question","color":"bfdadc"}],"state":"open","locked":false,"assignee":{"login":"gettalong","id":4104,"avatar_url":"https://avatars.githubusercontent.com/u/4104?v=3","gravatar_id":"","url":"https://api.github.com/users/gettalong","html_url":"https://github.com/gettalong","followers_url":"https://api.github.com/users/gettalong/followers","following_url":"https://api.github.com/users/gettalong/following{/other_user}","gists_url":"https://api.github.com/users/gettalong/gists{/gist_id}","starred_url":"https://api.github.com/users/gettalong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gettalong/subscriptions","organizations_url":"https://api.github.com/users/gettalong/orgs","repos_url":"https://api.github.com/users/gettalong/repos","events_url":"https://api.github.com/users/gettalong/events{/privacy}","received_events_url":"https://api.github.com/users/gettalong/received_events","type":"User","site_admin":false},"assignees":[{"login":"gettalong","id":4104,"avatar_url":"https://avatars.githubusercontent.com/u/4104?v=3","gravatar_id":"","url":"https://api.github.com/users/gettalong","html_url":"https://github.com/gettalong","followers_url":"https://api.github.com/users/gettalong/followers","following_url":"https://api.github.com/users/gettalong/following{/other_user}","gists_url":"https://api.github.com/users/gettalong/gists{/gist_id}","starred_url":"https://api.github.com/users/gettalong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gettalong/subscriptions","organizations_url":"https://api.github.com/users/gettalong/orgs","repos_url":"https://api.github.com/users/gettalong/repos","events_url":"https://api.github.com/users/gettalong/events{/privacy}","received_events_url":"https://api.github.com/users/gettalong/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-08-31T23:22:01Z","updated_at":"2016-09-09T20:57:20Z","closed_at":null,"body":"Here's some Markdown markup:\r\n\r\n```markdown\r\nBreak.\r\n\r\n* Root level\r\n  * Second level\r\n    * Third level\r\n  * Back to second level\r\n\r\nBreak again.\r\n\r\n1. Root level\r\n  * Second level\r\n    * Third level\r\n  * Back to second level\r\n\r\nFinal break.\r\n\r\n1. Root level\r\n   * Second level\r\n     * Third level\r\n   * Back to second level\r\n\r\nEnd of example.\r\n```\r\n\r\nThis renders: ![kramdown output](http://i.imgur.com/qNQx36S.png)\r\n\r\nThe middle list should look like the last list.\r\n\r\nSee this gist for the same input with proper output: <https://gist.github.com/chbrown/be1fd39b26da6022846d01d7b2ccfaa4>\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/gettalong/kramdown/issues/comments/246037628","html_url":"https://github.com/gettalong/kramdown/issues/368#issuecomment-246037628","issue_url":"https://api.github.com/repos/gettalong/kramdown/issues/368","id":246037628,"user":{"login":"gettalong","id":4104,"avatar_url":"https://avatars.githubusercontent.com/u/4104?v=3","gravatar_id":"","url":"https://api.github.com/users/gettalong","html_url":"https://github.com/gettalong","followers_url":"https://api.github.com/users/gettalong/followers","following_url":"https://api.github.com/users/gettalong/following{/other_user}","gists_url":"https://api.github.com/users/gettalong/gists{/gist_id}","starred_url":"https://api.github.com/users/gettalong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gettalong/subscriptions","organizations_url":"https://api.github.com/users/gettalong/orgs","repos_url":"https://api.github.com/users/gettalong/repos","events_url":"https://api.github.com/users/gettalong/events{/privacy}","received_events_url":"https://api.github.com/users/gettalong/received_events","type":"User","site_admin":false},"created_at":"2016-09-09T20:57:20Z","updated_at":"2016-09-09T20:57:20Z","body":"Thanks for showing this example!\r\n\r\nThere is actually a bug in kramdown concerning the parsing of the middle list:\r\n\r\n~~~\r\n1. Root level\r\n  * Second level\r\n    * Third level\r\n  * Back to second level\r\n~~~\r\n\r\n1. The first line is parsed, indentation is set to three spaces because the `R` of `Root level` is in column three.\r\n2. The part `  * Second level` is indented two spaces. This means it is part of the first list item because of the \"lazy list item content\" rule. However, it should not start a nested list because the needed indentation is off (one less than needed). This is the bug.\r\n\r\nSo the output of the above should actually be:\r\n\r\n~~~ html\r\n <ol>\r\n  <li>Root level\r\n  * Second level\r\n    <ul>\r\n      <li>Third level</li>\r\n      <li>Back to second level</li>\r\n    </ul>\r\n  </li>\r\n</ol>\r\n~~~\r\n\r\nThe part `    * Third level` starts a nested list because its indentation is four and that is more than the needed indentation of three spaces and less than the maximum of six allowed spaces (three for the needed indentation and three for the maximum allowed indentation of a list item marker)."}}
{"actor":{"display_login":"gettalong"}}