{"action":"created","issue":{"url":"https://api.github.com/repos/jgm/pandoc/issues/1658","labels_url":"https://api.github.com/repos/jgm/pandoc/issues/1658/labels{/name}","comments_url":"https://api.github.com/repos/jgm/pandoc/issues/1658/comments","events_url":"https://api.github.com/repos/jgm/pandoc/issues/1658/events","html_url":"https://github.com/jgm/pandoc/issues/1658","id":44427064,"number":1658,"title":"[Markdown -> PDF] - Header level 4+ is misplaced when followed by a table","user":{"login":"TiBeN","id":910115,"avatar_url":"https://avatars.githubusercontent.com/u/910115?v=3","gravatar_id":"","url":"https://api.github.com/users/TiBeN","html_url":"https://github.com/TiBeN","followers_url":"https://api.github.com/users/TiBeN/followers","following_url":"https://api.github.com/users/TiBeN/following{/other_user}","gists_url":"https://api.github.com/users/TiBeN/gists{/gist_id}","starred_url":"https://api.github.com/users/TiBeN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TiBeN/subscriptions","organizations_url":"https://api.github.com/users/TiBeN/orgs","repos_url":"https://api.github.com/users/TiBeN/repos","events_url":"https://api.github.com/users/TiBeN/events{/privacy}","received_events_url":"https://api.github.com/users/TiBeN/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jgm/pandoc/labels/Minor","name":"Minor","color":"c7def8"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/jgm/pandoc/milestones/3","html_url":"https://github.com/jgm/pandoc/milestones/1.14","labels_url":"https://api.github.com/repos/jgm/pandoc/milestones/3/labels","id":1052191,"number":3,"title":"1.14","description":null,"creator":{"login":"mpickering","id":1216657,"avatar_url":"https://avatars.githubusercontent.com/u/1216657?v=3","gravatar_id":"","url":"https://api.github.com/users/mpickering","html_url":"https://github.com/mpickering","followers_url":"https://api.github.com/users/mpickering/followers","following_url":"https://api.github.com/users/mpickering/following{/other_user}","gists_url":"https://api.github.com/users/mpickering/gists{/gist_id}","starred_url":"https://api.github.com/users/mpickering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpickering/subscriptions","organizations_url":"https://api.github.com/users/mpickering/orgs","repos_url":"https://api.github.com/users/mpickering/repos","events_url":"https://api.github.com/users/mpickering/events{/privacy}","received_events_url":"https://api.github.com/users/mpickering/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":10,"state":"open","created_at":"2015-04-03T19:17:56Z","updated_at":"2015-05-02T05:38:50Z","due_on":null,"closed_at":null},"comments":21,"created_at":"2014-09-30T11:22:05Z","updated_at":"2015-05-03T16:42:45Z","closed_at":"2015-04-18T01:51:46Z","body":"Using pandoc from official ubuntu repos, v1.12.2.1,\r\n\r\nWhen a header level 4 or higher is followed by a table, it is placed after the table. \r\nUnless i misunderstund a feature, i suspect a bug.\r\n\r\nHere's an example and it's pdf output:\r\n\r\n```markdown\r\n\r\n# Title 1\r\n\r\n  Right     Left     Center     Default \r\n-------     ------ ----------   -------\r\n     12     12        12            12\r\n                                                                    \r\n## title 2\r\n\r\n  Right     Left     Center     Default \r\n-------     ------ ----------   ------- \r\n     12     12        12            12 \r\n\r\n### Title 3\r\n\r\n  Right     Left     Center     Default\r\n-------     ------ ----------   ------- \r\n     12     12        12       12\r\n\r\n#### Title 4\r\n\r\n  Right     Left     Center     Default\r\n-------     ------ ----------   -------\r\n     12     12        12            12\r\n\r\n#### Title 5\r\n       \r\n  Right     Left     Center     Default \r\n-------     ------ ----------   -------\r\n     12     12        12            12 \r\n\r\n```\r\n\r\n![pandoc-bug](https://cloud.githubusercontent.com/assets/910115/4457062/3bd3c024-4892-11e4-9f9b-75303c8f7c53.jpg)\r\n\r\nForgot to mention the command line used: \r\n```bash\r\npandoc test.md -o test.pdf\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/jgm/pandoc/issues/comments/98502406","html_url":"https://github.com/jgm/pandoc/issues/1658#issuecomment-98502406","issue_url":"https://api.github.com/repos/jgm/pandoc/issues/1658","id":98502406,"user":{"login":"lierdakil","id":7275622,"avatar_url":"https://avatars.githubusercontent.com/u/7275622?v=3","gravatar_id":"","url":"https://api.github.com/users/lierdakil","html_url":"https://github.com/lierdakil","followers_url":"https://api.github.com/users/lierdakil/followers","following_url":"https://api.github.com/users/lierdakil/following{/other_user}","gists_url":"https://api.github.com/users/lierdakil/gists{/gist_id}","starred_url":"https://api.github.com/users/lierdakil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lierdakil/subscriptions","organizations_url":"https://api.github.com/users/lierdakil/orgs","repos_url":"https://api.github.com/users/lierdakil/repos","events_url":"https://api.github.com/users/lierdakil/events{/privacy}","received_events_url":"https://api.github.com/users/lierdakil/received_events","type":"User","site_admin":false},"created_at":"2015-05-03T16:42:45Z","updated_at":"2015-05-03T16:42:45Z","body":"@hugoroy, could you show exactly how did you encounter this error? I.e. input files, pandoc options, etc. It works fine for me."}}