{"action":"created","issue":{"url":"https://api.github.com/repos/pinax/symposion/issues/71","labels_url":"https://api.github.com/repos/pinax/symposion/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/pinax/symposion/issues/71/comments","events_url":"https://api.github.com/repos/pinax/symposion/issues/71/events","html_url":"https://github.com/pinax/symposion/issues/71","id":60765999,"number":71,"title":"html5lib 0.999 pinning causes a markdown parser error","user":{"login":"daaray","id":281961,"avatar_url":"https://avatars.githubusercontent.com/u/281961?v=3","gravatar_id":"","url":"https://api.github.com/users/daaray","html_url":"https://github.com/daaray","followers_url":"https://api.github.com/users/daaray/followers","following_url":"https://api.github.com/users/daaray/following{/other_user}","gists_url":"https://api.github.com/users/daaray/gists{/gist_id}","starred_url":"https://api.github.com/users/daaray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daaray/subscriptions","organizations_url":"https://api.github.com/users/daaray/orgs","repos_url":"https://api.github.com/users/daaray/repos","events_url":"https://api.github.com/users/daaray/events{/privacy}","received_events_url":"https://api.github.com/users/daaray/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-12T03:32:55Z","updated_at":"2015-12-22T13:13:02Z","closed_at":null,"body":"The [pinned requirement](https://github.com/pinax/symposion/commit/894e7b1b2e65b3b9d36ec981c39a3352826b75de#diff-7fe11226cff646f5d9f35faa76217059R12) causes the markdown [parser](https://github.com/pinax/symposion/blob/master/symposion/markdown_parser.py#L14) to throw errors:\r\n\r\n```\r\n  File \"/home/daaray/.virtualenvs/conf_site/local/lib/python2.7/site-packages/sy\r\nmposion/markdown_parser.py\", line 15, in parse\r\n    for token in parser.parseFragment(text).childNodes:\r\nAttributeError: childNodes\r\n```\r\n\r\nThis is due to https://github.com/html5lib/html5lib-python/pull/45.\r\n\r\nWe need to either revert the pin to 0.95 or modify the parser by specifying the tree builder:\r\n\r\n```\r\nfrom html5lib import html5parser, sanitizer, getTreeBuilder\r\n\r\nimport markdown\r\n\r\n\r\ndef parse(text):\r\n\r\n    # First run through the Markdown parser\r\n    text = markdown.markdown(text, extensions=[\"extra\"], safe_mode=False)\r\n\r\n    # Sanitize using html5lib\r\n    bits = []\r\n    parser = html5parser.HTMLParser(tokenizer=sanitizer.HTMLSanitizer, tree=getTreeBuilder(\"dom\"))\r\n    for token in parser.parseFragment(text).childNodes:\r\n        bits.append(token.toxml())\r\n    return \"\".join(bits)\r\n```"},"comment":{"url":"https://api.github.com/repos/pinax/symposion/issues/comments/166612967","html_url":"https://github.com/pinax/symposion/issues/71#issuecomment-166612967","issue_url":"https://api.github.com/repos/pinax/symposion/issues/71","id":166612967,"user":{"login":"ossanna16","id":8700795,"avatar_url":"https://avatars.githubusercontent.com/u/8700795?v=3","gravatar_id":"","url":"https://api.github.com/users/ossanna16","html_url":"https://github.com/ossanna16","followers_url":"https://api.github.com/users/ossanna16/followers","following_url":"https://api.github.com/users/ossanna16/following{/other_user}","gists_url":"https://api.github.com/users/ossanna16/gists{/gist_id}","starred_url":"https://api.github.com/users/ossanna16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ossanna16/subscriptions","organizations_url":"https://api.github.com/users/ossanna16/orgs","repos_url":"https://api.github.com/users/ossanna16/repos","events_url":"https://api.github.com/users/ossanna16/events{/privacy}","received_events_url":"https://api.github.com/users/ossanna16/received_events","type":"User","site_admin":false},"created_at":"2015-12-22T13:13:02Z","updated_at":"2015-12-22T13:13:02Z","body":"Can this issue be closed? It seems to be fixed."}}