{"action":"created","issue":{"url":"https://api.github.com/repos/jgm/pandoc/issues/2026","labels_url":"https://api.github.com/repos/jgm/pandoc/issues/2026/labels{/name}","comments_url":"https://api.github.com/repos/jgm/pandoc/issues/2026/comments","events_url":"https://api.github.com/repos/jgm/pandoc/issues/2026/events","html_url":"https://github.com/jgm/pandoc/issues/2026","id":64362463,"number":2026,"title":"Enabling mmd_title_block causes YAML title blocks to be mis-parsed","user":{"login":"zackw","id":325899,"avatar_url":"https://avatars.githubusercontent.com/u/325899?v=3","gravatar_id":"","url":"https://api.github.com/users/zackw","html_url":"https://github.com/zackw","followers_url":"https://api.github.com/users/zackw/followers","following_url":"https://api.github.com/users/zackw/following{/other_user}","gists_url":"https://api.github.com/users/zackw/gists{/gist_id}","starred_url":"https://api.github.com/users/zackw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zackw/subscriptions","organizations_url":"https://api.github.com/users/zackw/orgs","repos_url":"https://api.github.com/users/zackw/repos","events_url":"https://api.github.com/users/zackw/events{/privacy}","received_events_url":"https://api.github.com/users/zackw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-25T20:10:38Z","updated_at":"2015-03-27T23:39:20Z","closed_at":null,"body":"Consider\r\n\r\n    ---\r\n    booktitle_url: http://www.sigsac.org/ccs/CCS2013/\r\n    ...\r\n\r\nThis is unambiguously a YAML header, and the manual says YAML headers take precedence over MMD headers.  But watch what happens:\r\n\r\n    $ pandoc -f markdown -t json < test.md\r\n    [{\"unMeta\":{\"booktitle_url\":{\"t\":\"MetaInlines\",\"c\":[{\"t\":\"Str\",\"c\":\"http://www.sigsac.org/ccs/CCS2013/\"}]}}},[]]\r\n\r\n    $ pandoc -f markdown+mmd_title_block -t json < test.md\r\n    [{\"unMeta\":{\"booktitle_url\":{\"t\":\"MetaBlocks\",\"c\":[]}}},[]]\r\n\r\nNot all values are affected.  URLs consistently seem to get eaten, and strings containing no punctuation consistently seem to survive, but don't quote me on that.\r\n\r\nI have pandoc 1.12.4.2, in case that matters."},"comment":{"url":"https://api.github.com/repos/jgm/pandoc/issues/comments/87121746","html_url":"https://github.com/jgm/pandoc/issues/2026#issuecomment-87121746","issue_url":"https://api.github.com/repos/jgm/pandoc/issues/2026","id":87121746,"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-03-27T23:39:20Z","updated_at":"2015-03-27T23:39:20Z","body":"@zackw, not sure about YAML spec, but it's parsed by [yaml](https://github.com/snoyberg/yaml), so that's not directly related to pandoc itself.\r\n\r\nMultimarkdown title block is parsed by pandoc, however.\r\n\r\nFix options would include:\r\n\r\n1. Require space after semicolon in mmd title block\r\n2. Disable all metadata block extensions when parsing metadata fields\r\n\r\nIn all honesty, I think both should be implemented..."}}