{"action":"created","issue":{"url":"https://api.github.com/repos/jrblevin/markdown-mode/issues/91","repository_url":"https://api.github.com/repos/jrblevin/markdown-mode","labels_url":"https://api.github.com/repos/jrblevin/markdown-mode/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/jrblevin/markdown-mode/issues/91/comments","events_url":"https://api.github.com/repos/jrblevin/markdown-mode/issues/91/events","html_url":"https://github.com/jrblevin/markdown-mode/pull/91","id":132392354,"number":91,"title":"Add yaml metadata parsing","user":{"login":"cosmicexplorer","id":1305167,"avatar_url":"https://avatars.githubusercontent.com/u/1305167?v=3","gravatar_id":"","url":"https://api.github.com/users/cosmicexplorer","html_url":"https://github.com/cosmicexplorer","followers_url":"https://api.github.com/users/cosmicexplorer/followers","following_url":"https://api.github.com/users/cosmicexplorer/following{/other_user}","gists_url":"https://api.github.com/users/cosmicexplorer/gists{/gist_id}","starred_url":"https://api.github.com/users/cosmicexplorer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cosmicexplorer/subscriptions","organizations_url":"https://api.github.com/users/cosmicexplorer/orgs","repos_url":"https://api.github.com/users/cosmicexplorer/repos","events_url":"https://api.github.com/users/cosmicexplorer/events{/privacy}","received_events_url":"https://api.github.com/users/cosmicexplorer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-02-09T11:14:32Z","updated_at":"2016-02-11T19:09:56Z","closed_at":"2016-02-10T17:02:43Z","pull_request":{"url":"https://api.github.com/repos/jrblevin/markdown-mode/pulls/91","html_url":"https://github.com/jrblevin/markdown-mode/pull/91","diff_url":"https://github.com/jrblevin/markdown-mode/pull/91.diff","patch_url":"https://github.com/jrblevin/markdown-mode/pull/91.patch"},"body":"Also add testing and allow multiple pandoc metadata blocks. Fix #66."},"comment":{"url":"https://api.github.com/repos/jrblevin/markdown-mode/issues/comments/183014015","html_url":"https://github.com/jrblevin/markdown-mode/pull/91#issuecomment-183014015","issue_url":"https://api.github.com/repos/jrblevin/markdown-mode/issues/91","id":183014015,"user":{"login":"cosmicexplorer","id":1305167,"avatar_url":"https://avatars.githubusercontent.com/u/1305167?v=3","gravatar_id":"","url":"https://api.github.com/users/cosmicexplorer","html_url":"https://github.com/cosmicexplorer","followers_url":"https://api.github.com/users/cosmicexplorer/followers","following_url":"https://api.github.com/users/cosmicexplorer/following{/other_user}","gists_url":"https://api.github.com/users/cosmicexplorer/gists{/gist_id}","starred_url":"https://api.github.com/users/cosmicexplorer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cosmicexplorer/subscriptions","organizations_url":"https://api.github.com/users/cosmicexplorer/orgs","repos_url":"https://api.github.com/users/cosmicexplorer/repos","events_url":"https://api.github.com/users/cosmicexplorer/events{/privacy}","received_events_url":"https://api.github.com/users/cosmicexplorer/received_events","type":"User","site_admin":false},"created_at":"2016-02-11T19:09:56Z","updated_at":"2016-02-11T19:09:56Z","body":"I'll take a look at these tomorrow. I think I can speed up the metadata block matching by propertizing metadata block start and end boundaries (the `---\\n` lines) and searching for characters with that property. We can then search for code block boundaries as well, using the same trick.\r\n\r\nWith respect to the if statements, I wanted to allow for local binding of the pandoc style; if you want to remove the if statements, I can factor that out into a separate function."}}