{"action":"opened","number":1636,"pull_request":{"url":"https://api.github.com/repos/getpelican/pelican/pulls/1636","id":29784929,"html_url":"https://github.com/getpelican/pelican/pull/1636","diff_url":"https://github.com/getpelican/pelican/pull/1636.diff","patch_url":"https://github.com/getpelican/pelican/pull/1636.patch","issue_url":"https://api.github.com/repos/getpelican/pelican/issues/1636","number":1636,"state":"open","locked":false,"title":"Add support for YAML metadata in Markdown files","user":{"login":"kernc","id":684364,"avatar_url":"https://avatars.githubusercontent.com/u/684364?v=3","gravatar_id":"","url":"https://api.github.com/users/kernc","html_url":"https://github.com/kernc","followers_url":"https://api.github.com/users/kernc/followers","following_url":"https://api.github.com/users/kernc/following{/other_user}","gists_url":"https://api.github.com/users/kernc/gists{/gist_id}","starred_url":"https://api.github.com/users/kernc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kernc/subscriptions","organizations_url":"https://api.github.com/users/kernc/orgs","repos_url":"https://api.github.com/users/kernc/repos","events_url":"https://api.github.com/users/kernc/events{/privacy}","received_events_url":"https://api.github.com/users/kernc/received_events","type":"User","site_admin":false},"body":"Python-Markdown>=2.6 and its meta extension supports YAML headers and optional `yaml` switch which, when used, parses data with PyYAML and hence a wee bit different metadata object gets provided. This is what I came up with. I think it may work perhaps.\r\n\r\nRelated: https://github.com/getpelican/pelican-plugins/pull/382\r\n\r\nWould YAML deserve a mention in _docs/content.rst_?","created_at":"2015-02-23T03:52:58Z","updated_at":"2015-02-23T03:52:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1a9e9b21cb6bd28f601f1388d6b58f87f0ee512d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/getpelican/pelican/pulls/1636/commits","review_comments_url":"https://api.github.com/repos/getpelican/pelican/pulls/1636/comments","review_comment_url":"https://api.github.com/repos/getpelican/pelican/pulls/comments{/number}","comments_url":"https://api.github.com/repos/getpelican/pelican/issues/1636/comments","statuses_url":"https://api.github.com/repos/getpelican/pelican/statuses/e4933848687ba10508fab3221efaac2f817eb25d","head":{"label":"kernc:yaml_metadata","ref":"yaml_metadata","sha":"e4933848687ba10508fab3221efaac2f817eb25d","user":{"login":"kernc","id":684364,"avatar_url":"https://avatars.githubusercontent.com/u/684364?v=3","gravatar_id":"","url":"https://api.github.com/users/kernc","html_url":"https://github.com/kernc","followers_url":"https://api.github.com/users/kernc/followers","following_url":"https://api.github.com/users/kernc/following{/other_user}","gists_url":"https://api.github.com/users/kernc/gists{/gist_id}","starred_url":"https://api.github.com/users/kernc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kernc/subscriptions","organizations_url":"https://api.github.com/users/kernc/orgs","repos_url":"https://api.github.com/users/kernc/repos","events_url":"https://api.github.com/users/kernc/events{/privacy}","received_events_url":"https://api.github.com/users/kernc/received_events","type":"User","site_admin":false},"repo":{"id":26664459,"name":"pelican","full_name":"kernc/pelican","owner":{"login":"kernc","id":684364,"avatar_url":"https://avatars.githubusercontent.com/u/684364?v=3","gravatar_id":"","url":"https://api.github.com/users/kernc","html_url":"https://github.com/kernc","followers_url":"https://api.github.com/users/kernc/followers","following_url":"https://api.github.com/users/kernc/following{/other_user}","gists_url":"https://api.github.com/users/kernc/gists{/gist_id}","starred_url":"https://api.github.com/users/kernc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kernc/subscriptions","organizations_url":"https://api.github.com/users/kernc/orgs","repos_url":"https://api.github.com/users/kernc/repos","events_url":"https://api.github.com/users/kernc/events{/privacy}","received_events_url":"https://api.github.com/users/kernc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kernc/pelican","description":"Static site generator that supports Markdown and reST syntax. Powered by Python.","fork":true,"url":"https://api.github.com/repos/kernc/pelican","forks_url":"https://api.github.com/repos/kernc/pelican/forks","keys_url":"https://api.github.com/repos/kernc/pelican/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kernc/pelican/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kernc/pelican/teams","hooks_url":"https://api.github.com/repos/kernc/pelican/hooks","issue_events_url":"https://api.github.com/repos/kernc/pelican/issues/events{/number}","events_url":"https://api.github.com/repos/kernc/pelican/events","assignees_url":"https://api.github.com/repos/kernc/pelican/assignees{/user}","branches_url":"https://api.github.com/repos/kernc/pelican/branches{/branch}","tags_url":"https://api.github.com/repos/kernc/pelican/tags","blobs_url":"https://api.github.com/repos/kernc/pelican/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kernc/pelican/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kernc/pelican/git/refs{/sha}","trees_url":"https://api.github.com/repos/kernc/pelican/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kernc/pelican/statuses/{sha}","languages_url":"https://api.github.com/repos/kernc/pelican/languages","stargazers_url":"https://api.github.com/repos/kernc/pelican/stargazers","contributors_url":"https://api.github.com/repos/kernc/pelican/contributors","subscribers_url":"https://api.github.com/repos/kernc/pelican/subscribers","subscription_url":"https://api.github.com/repos/kernc/pelican/subscription","commits_url":"https://api.github.com/repos/kernc/pelican/commits{/sha}","git_commits_url":"https://api.github.com/repos/kernc/pelican/git/commits{/sha}","comments_url":"https://api.github.com/repos/kernc/pelican/comments{/number}","issue_comment_url":"https://api.github.com/repos/kernc/pelican/issues/comments{/number}","contents_url":"https://api.github.com/repos/kernc/pelican/contents/{+path}","compare_url":"https://api.github.com/repos/kernc/pelican/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kernc/pelican/merges","archive_url":"https://api.github.com/repos/kernc/pelican/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kernc/pelican/downloads","issues_url":"https://api.github.com/repos/kernc/pelican/issues{/number}","pulls_url":"https://api.github.com/repos/kernc/pelican/pulls{/number}","milestones_url":"https://api.github.com/repos/kernc/pelican/milestones{/number}","notifications_url":"https://api.github.com/repos/kernc/pelican/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kernc/pelican/labels{/name}","releases_url":"https://api.github.com/repos/kernc/pelican/releases{/id}","created_at":"2014-11-15T01:00:22Z","updated_at":"2015-02-21T23:58:55Z","pushed_at":"2015-02-23T03:49:47Z","git_url":"git://github.com/kernc/pelican.git","ssh_url":"git@github.com:kernc/pelican.git","clone_url":"https://github.com/kernc/pelican.git","svn_url":"https://github.com/kernc/pelican","homepage":"http://getpelican.com/","size":5453,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"getpelican:master","ref":"master","sha":"d4ba7b729197cfd71ea2fc7137a13481b9bd3839","user":{"login":"getpelican","id":2043492,"avatar_url":"https://avatars.githubusercontent.com/u/2043492?v=3","gravatar_id":"","url":"https://api.github.com/users/getpelican","html_url":"https://github.com/getpelican","followers_url":"https://api.github.com/users/getpelican/followers","following_url":"https://api.github.com/users/getpelican/following{/other_user}","gists_url":"https://api.github.com/users/getpelican/gists{/gist_id}","starred_url":"https://api.github.com/users/getpelican/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getpelican/subscriptions","organizations_url":"https://api.github.com/users/getpelican/orgs","repos_url":"https://api.github.com/users/getpelican/repos","events_url":"https://api.github.com/users/getpelican/events{/privacy}","received_events_url":"https://api.github.com/users/getpelican/received_events","type":"Organization","site_admin":false},"repo":{"id":993110,"name":"pelican","full_name":"getpelican/pelican","owner":{"login":"getpelican","id":2043492,"avatar_url":"https://avatars.githubusercontent.com/u/2043492?v=3","gravatar_id":"","url":"https://api.github.com/users/getpelican","html_url":"https://github.com/getpelican","followers_url":"https://api.github.com/users/getpelican/followers","following_url":"https://api.github.com/users/getpelican/following{/other_user}","gists_url":"https://api.github.com/users/getpelican/gists{/gist_id}","starred_url":"https://api.github.com/users/getpelican/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getpelican/subscriptions","organizations_url":"https://api.github.com/users/getpelican/orgs","repos_url":"https://api.github.com/users/getpelican/repos","events_url":"https://api.github.com/users/getpelican/events{/privacy}","received_events_url":"https://api.github.com/users/getpelican/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/getpelican/pelican","description":"Static site generator that supports Markdown and reST syntax. Powered by Python.","fork":false,"url":"https://api.github.com/repos/getpelican/pelican","forks_url":"https://api.github.com/repos/getpelican/pelican/forks","keys_url":"https://api.github.com/repos/getpelican/pelican/keys{/key_id}","collaborators_url":"https://api.github.com/repos/getpelican/pelican/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/getpelican/pelican/teams","hooks_url":"https://api.github.com/repos/getpelican/pelican/hooks","issue_events_url":"https://api.github.com/repos/getpelican/pelican/issues/events{/number}","events_url":"https://api.github.com/repos/getpelican/pelican/events","assignees_url":"https://api.github.com/repos/getpelican/pelican/assignees{/user}","branches_url":"https://api.github.com/repos/getpelican/pelican/branches{/branch}","tags_url":"https://api.github.com/repos/getpelican/pelican/tags","blobs_url":"https://api.github.com/repos/getpelican/pelican/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/getpelican/pelican/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/getpelican/pelican/git/refs{/sha}","trees_url":"https://api.github.com/repos/getpelican/pelican/git/trees{/sha}","statuses_url":"https://api.github.com/repos/getpelican/pelican/statuses/{sha}","languages_url":"https://api.github.com/repos/getpelican/pelican/languages","stargazers_url":"https://api.github.com/repos/getpelican/pelican/stargazers","contributors_url":"https://api.github.com/repos/getpelican/pelican/contributors","subscribers_url":"https://api.github.com/repos/getpelican/pelican/subscribers","subscription_url":"https://api.github.com/repos/getpelican/pelican/subscription","commits_url":"https://api.github.com/repos/getpelican/pelican/commits{/sha}","git_commits_url":"https://api.github.com/repos/getpelican/pelican/git/commits{/sha}","comments_url":"https://api.github.com/repos/getpelican/pelican/comments{/number}","issue_comment_url":"https://api.github.com/repos/getpelican/pelican/issues/comments{/number}","contents_url":"https://api.github.com/repos/getpelican/pelican/contents/{+path}","compare_url":"https://api.github.com/repos/getpelican/pelican/compare/{base}...{head}","merges_url":"https://api.github.com/repos/getpelican/pelican/merges","archive_url":"https://api.github.com/repos/getpelican/pelican/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/getpelican/pelican/downloads","issues_url":"https://api.github.com/repos/getpelican/pelican/issues{/number}","pulls_url":"https://api.github.com/repos/getpelican/pelican/pulls{/number}","milestones_url":"https://api.github.com/repos/getpelican/pelican/milestones{/number}","notifications_url":"https://api.github.com/repos/getpelican/pelican/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/getpelican/pelican/labels{/name}","releases_url":"https://api.github.com/repos/getpelican/pelican/releases{/id}","created_at":"2010-10-16T18:57:40Z","updated_at":"2015-02-22T21:15:54Z","pushed_at":"2015-02-18T17:44:28Z","git_url":"git://github.com/getpelican/pelican.git","ssh_url":"git@github.com:getpelican/pelican.git","clone_url":"https://github.com/getpelican/pelican.git","svn_url":"https://github.com/getpelican/pelican","homepage":"http://getpelican.com/","size":12873,"stargazers_count":4327,"watchers_count":4327,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1018,"mirror_url":null,"open_issues_count":158,"forks":1018,"open_issues":158,"watchers":4327,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/getpelican/pelican/pulls/1636"},"html":{"href":"https://github.com/getpelican/pelican/pull/1636"},"issue":{"href":"https://api.github.com/repos/getpelican/pelican/issues/1636"},"comments":{"href":"https://api.github.com/repos/getpelican/pelican/issues/1636/comments"},"review_comments":{"href":"https://api.github.com/repos/getpelican/pelican/pulls/1636/comments"},"review_comment":{"href":"https://api.github.com/repos/getpelican/pelican/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/getpelican/pelican/pulls/1636/commits"},"statuses":{"href":"https://api.github.com/repos/getpelican/pelican/statuses/e4933848687ba10508fab3221efaac2f817eb25d"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":34,"deletions":15,"changed_files":2}}