{"action":"opened","issue":{"url":"https://api.github.com/repos/gjtorikian/commonmarker/issues/56","repository_url":"https://api.github.com/repos/gjtorikian/commonmarker","labels_url":"https://api.github.com/repos/gjtorikian/commonmarker/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/gjtorikian/commonmarker/issues/56/comments","events_url":"https://api.github.com/repos/gjtorikian/commonmarker/issues/56/events","html_url":"https://github.com/gjtorikian/commonmarker/issues/56","id":266815422,"number":56,"title":"<tbody> is missed on rendering doc","user":{"login":"blackst0ne","id":1610813,"avatar_url":"https://avatars1.githubusercontent.com/u/1610813?v=4","gravatar_id":"","url":"https://api.github.com/users/blackst0ne","html_url":"https://github.com/blackst0ne","followers_url":"https://api.github.com/users/blackst0ne/followers","following_url":"https://api.github.com/users/blackst0ne/following{/other_user}","gists_url":"https://api.github.com/users/blackst0ne/gists{/gist_id}","starred_url":"https://api.github.com/users/blackst0ne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blackst0ne/subscriptions","organizations_url":"https://api.github.com/users/blackst0ne/orgs","repos_url":"https://api.github.com/users/blackst0ne/repos","events_url":"https://api.github.com/users/blackst0ne/events{/privacy}","received_events_url":"https://api.github.com/users/blackst0ne/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-19T11:52:38Z","updated_at":"2017-10-19T11:52:38Z","closed_at":null,"author_association":"NONE","body":"I have such a simple markdown with two tables:\r\n\r\n```markdown\r\n| Input       | Expected         | Actual    |\r\n| ----------- | ---------------- | --------- |\r\n| One         | Two              | Three     |\r\n\r\n| Header   | Row  | Example |\r\n| :------: | ---: | :------ |\r\n| Foo      | Bar  | Baz     |\r\n```\r\n\r\nI want to render it to a doc and then to a HTML string using the `CommonMarker::HtmlRenderer.new.render`, but the result gets lost the `<tbody>` tag of the second table.\r\n\r\n```ruby\r\nrequire 'commonmarker'\r\n\r\ncontent = File.read('path/to/markdown.md')\r\ndoc = CommonMarker.render_doc(content, :DEFAULT, [:autolink, :table, :tagfilter])\r\nCommonMarker::HtmlRenderer.new.render(doc)\r\n```\r\n\r\nIn my real case I use my custom renderer inherited from the `CommonMarker::HtmlRenderer`, but it doesn't matter because the bug is reproducible with the gem's methods.\r\n\r\nBy the way, if I run either `doc.to_html` or `CommonMarker.render_html(content, :DEFAULT, [:autolink, :table, :tagfilter])`, the second `<tbody>` is added just as expected.\r\n\r\ncommonmarker-0.17.4   \r\nruby 2.3.5p376"}}
{"actor":{"display_login":"blackst0ne"}}