{"action":"closed","issue":{"url":"https://api.github.com/repos/markdown-it/markdown-it/issues/59","labels_url":"https://api.github.com/repos/markdown-it/markdown-it/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/markdown-it/markdown-it/issues/59/comments","events_url":"https://api.github.com/repos/markdown-it/markdown-it/issues/59/events","html_url":"https://github.com/markdown-it/markdown-it/issues/59","id":57691248,"number":59,"title":"table rule should add/remove columns to match the first row's column count","user":{"login":"opennota","id":5520115,"avatar_url":"https://avatars.githubusercontent.com/u/5520115?v=3","gravatar_id":"","url":"https://api.github.com/users/opennota","html_url":"https://github.com/opennota","followers_url":"https://api.github.com/users/opennota/followers","following_url":"https://api.github.com/users/opennota/following{/other_user}","gists_url":"https://api.github.com/users/opennota/gists{/gist_id}","starred_url":"https://api.github.com/users/opennota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opennota/subscriptions","organizations_url":"https://api.github.com/users/opennota/orgs","repos_url":"https://api.github.com/users/opennota/repos","events_url":"https://api.github.com/users/opennota/events{/privacy}","received_events_url":"https://api.github.com/users/opennota/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-14T12:13:58Z","updated_at":"2015-02-19T12:34:18Z","closed_at":"2015-02-19T12:34:18Z","body":"Table rule should add/remove columns when the current row's column count doesn't match the column count established by the first row.\r\n\r\n```\r\nvar md = MarkdownIt();\r\nconsole.log(md.render('Heading 1|Heading 2|Heading 3\\n---|---|---\\n1|2\\n1|2|3|4\\n'));\r\n```\r\n```\r\n<table>\r\n<thead>\r\n<tr><th>Heading 1</th><th>Heading 2</th><th>Heading 3</th></tr>\r\n</thead>\r\n<tbody>\r\n<tr><td>1</td><td>2</td></tr>\r\n<tr><td>1</td><td>2</td><td>3</td><td>4</td></tr>\r\n</tbody>\r\n</table>\r\n```\r\nHere the table rows are 2 and 4 columns wide, whereas the header row has 3 columns.\r\n\r\n**UPDATE**: GitHub allows less columns, but removes the extra columns."}}