{"action":"closed","number":210,"pull_request":{"url":"https://api.github.com/repos/trentm/python-markdown2/pulls/210","id":70712470,"html_url":"https://github.com/trentm/python-markdown2/pull/210","diff_url":"https://github.com/trentm/python-markdown2/pull/210.diff","patch_url":"https://github.com/trentm/python-markdown2/pull/210.patch","issue_url":"https://api.github.com/repos/trentm/python-markdown2/issues/210","number":210,"state":"closed","locked":false,"title":"Add a case: leading paragraph in fenced_code_blocks.","user":{"login":"keysona","id":12066443,"avatar_url":"https://avatars.githubusercontent.com/u/12066443?v=3","gravatar_id":"","url":"https://api.github.com/users/keysona","html_url":"https://github.com/keysona","followers_url":"https://api.github.com/users/keysona/followers","following_url":"https://api.github.com/users/keysona/following{/other_user}","gists_url":"https://api.github.com/users/keysona/gists{/gist_id}","starred_url":"https://api.github.com/users/keysona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keysona/subscriptions","organizations_url":"https://api.github.com/users/keysona/orgs","repos_url":"https://api.github.com/users/keysona/repos","events_url":"https://api.github.com/users/keysona/events{/privacy}","received_events_url":"https://api.github.com/users/keysona/received_events","type":"User","site_admin":false},"body":"Hi, I met a problem when I want to convert my article written by others markdown editor like [Dillinger](http://dillinger.io/).\r\n\r\nThe problem in code block.\r\n\r\nThe input:\r\n<pre>\r\nThis is python code.\r\n```python\r\nimport os\r\nprint(os.listdir('.'))\r\n```\r\n</pre>\r\n\r\n\r\nThe output:\r\n```\r\n<p>This is python code.\r\n<code>python\r\nimport os\r\nprint(os.listdir('.'))\r\n</code></p>\r\n```\r\n\r\nBut expected output is this:\r\n```\r\n<p>This is python code.</p>\r\n\r\n<pre><code>import os\r\nprint(os.listdir('.'))\r\n</code></pre>\r\n```\r\n\r\nI think most markdown editor suppor this, but markdown2 don't.\r\nSo I try to support this.\r\nI have add some test, and all others test has been pass.","created_at":"2016-05-19T15:14:23Z","updated_at":"2016-05-23T03:45:05Z","closed_at":"2016-05-23T03:45:05Z","merged_at":"2016-05-23T03:45:05Z","merge_commit_sha":"cbf45c7511d6be942fb58876958cfd915b004342","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/trentm/python-markdown2/pulls/210/commits","review_comments_url":"https://api.github.com/repos/trentm/python-markdown2/pulls/210/comments","review_comment_url":"https://api.github.com/repos/trentm/python-markdown2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/trentm/python-markdown2/issues/210/comments","statuses_url":"https://api.github.com/repos/trentm/python-markdown2/statuses/3ade2160c4b2c4eda0d2dfa944b863f1d93624b3","head":{"label":"keysona:master","ref":"master","sha":"3ade2160c4b2c4eda0d2dfa944b863f1d93624b3","user":{"login":"keysona","id":12066443,"avatar_url":"https://avatars.githubusercontent.com/u/12066443?v=3","gravatar_id":"","url":"https://api.github.com/users/keysona","html_url":"https://github.com/keysona","followers_url":"https://api.github.com/users/keysona/followers","following_url":"https://api.github.com/users/keysona/following{/other_user}","gists_url":"https://api.github.com/users/keysona/gists{/gist_id}","starred_url":"https://api.github.com/users/keysona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keysona/subscriptions","organizations_url":"https://api.github.com/users/keysona/orgs","repos_url":"https://api.github.com/users/keysona/repos","events_url":"https://api.github.com/users/keysona/events{/privacy}","received_events_url":"https://api.github.com/users/keysona/received_events","type":"User","site_admin":false},"repo":{"id":59185539,"name":"python-markdown2","full_name":"keysona/python-markdown2","owner":{"login":"keysona","id":12066443,"avatar_url":"https://avatars.githubusercontent.com/u/12066443?v=3","gravatar_id":"","url":"https://api.github.com/users/keysona","html_url":"https://github.com/keysona","followers_url":"https://api.github.com/users/keysona/followers","following_url":"https://api.github.com/users/keysona/following{/other_user}","gists_url":"https://api.github.com/users/keysona/gists{/gist_id}","starred_url":"https://api.github.com/users/keysona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keysona/subscriptions","organizations_url":"https://api.github.com/users/keysona/orgs","repos_url":"https://api.github.com/users/keysona/repos","events_url":"https://api.github.com/users/keysona/events{/privacy}","received_events_url":"https://api.github.com/users/keysona/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/keysona/python-markdown2","description":"markdown2: A fast and complete implementation of Markdown in Python","fork":true,"url":"https://api.github.com/repos/keysona/python-markdown2","forks_url":"https://api.github.com/repos/keysona/python-markdown2/forks","keys_url":"https://api.github.com/repos/keysona/python-markdown2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/keysona/python-markdown2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/keysona/python-markdown2/teams","hooks_url":"https://api.github.com/repos/keysona/python-markdown2/hooks","issue_events_url":"https://api.github.com/repos/keysona/python-markdown2/issues/events{/number}","events_url":"https://api.github.com/repos/keysona/python-markdown2/events","assignees_url":"https://api.github.com/repos/keysona/python-markdown2/assignees{/user}","branches_url":"https://api.github.com/repos/keysona/python-markdown2/branches{/branch}","tags_url":"https://api.github.com/repos/keysona/python-markdown2/tags","blobs_url":"https://api.github.com/repos/keysona/python-markdown2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/keysona/python-markdown2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/keysona/python-markdown2/git/refs{/sha}","trees_url":"https://api.github.com/repos/keysona/python-markdown2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/keysona/python-markdown2/statuses/{sha}","languages_url":"https://api.github.com/repos/keysona/python-markdown2/languages","stargazers_url":"https://api.github.com/repos/keysona/python-markdown2/stargazers","contributors_url":"https://api.github.com/repos/keysona/python-markdown2/contributors","subscribers_url":"https://api.github.com/repos/keysona/python-markdown2/subscribers","subscription_url":"https://api.github.com/repos/keysona/python-markdown2/subscription","commits_url":"https://api.github.com/repos/keysona/python-markdown2/commits{/sha}","git_commits_url":"https://api.github.com/repos/keysona/python-markdown2/git/commits{/sha}","comments_url":"https://api.github.com/repos/keysona/python-markdown2/comments{/number}","issue_comment_url":"https://api.github.com/repos/keysona/python-markdown2/issues/comments{/number}","contents_url":"https://api.github.com/repos/keysona/python-markdown2/contents/{+path}","compare_url":"https://api.github.com/repos/keysona/python-markdown2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/keysona/python-markdown2/merges","archive_url":"https://api.github.com/repos/keysona/python-markdown2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/keysona/python-markdown2/downloads","issues_url":"https://api.github.com/repos/keysona/python-markdown2/issues{/number}","pulls_url":"https://api.github.com/repos/keysona/python-markdown2/pulls{/number}","milestones_url":"https://api.github.com/repos/keysona/python-markdown2/milestones{/number}","notifications_url":"https://api.github.com/repos/keysona/python-markdown2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/keysona/python-markdown2/labels{/name}","releases_url":"https://api.github.com/repos/keysona/python-markdown2/releases{/id}","deployments_url":"https://api.github.com/repos/keysona/python-markdown2/deployments","created_at":"2016-05-19T07:52:46Z","updated_at":"2016-05-19T07:52:48Z","pushed_at":"2016-05-19T14:41:08Z","git_url":"git://github.com/keysona/python-markdown2.git","ssh_url":"git@github.com:keysona/python-markdown2.git","clone_url":"https://github.com/keysona/python-markdown2.git","svn_url":"https://github.com/keysona/python-markdown2","homepage":"","size":1504,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"trentm:master","ref":"master","sha":"19cbcb7a5cef35e27346a899c741c685906131bd","user":{"login":"trentm","id":46866,"avatar_url":"https://avatars.githubusercontent.com/u/46866?v=3","gravatar_id":"","url":"https://api.github.com/users/trentm","html_url":"https://github.com/trentm","followers_url":"https://api.github.com/users/trentm/followers","following_url":"https://api.github.com/users/trentm/following{/other_user}","gists_url":"https://api.github.com/users/trentm/gists{/gist_id}","starred_url":"https://api.github.com/users/trentm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trentm/subscriptions","organizations_url":"https://api.github.com/users/trentm/orgs","repos_url":"https://api.github.com/users/trentm/repos","events_url":"https://api.github.com/users/trentm/events{/privacy}","received_events_url":"https://api.github.com/users/trentm/received_events","type":"User","site_admin":false},"repo":{"id":1310572,"name":"python-markdown2","full_name":"trentm/python-markdown2","owner":{"login":"trentm","id":46866,"avatar_url":"https://avatars.githubusercontent.com/u/46866?v=3","gravatar_id":"","url":"https://api.github.com/users/trentm","html_url":"https://github.com/trentm","followers_url":"https://api.github.com/users/trentm/followers","following_url":"https://api.github.com/users/trentm/following{/other_user}","gists_url":"https://api.github.com/users/trentm/gists{/gist_id}","starred_url":"https://api.github.com/users/trentm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trentm/subscriptions","organizations_url":"https://api.github.com/users/trentm/orgs","repos_url":"https://api.github.com/users/trentm/repos","events_url":"https://api.github.com/users/trentm/events{/privacy}","received_events_url":"https://api.github.com/users/trentm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/trentm/python-markdown2","description":"markdown2: A fast and complete implementation of Markdown in Python","fork":false,"url":"https://api.github.com/repos/trentm/python-markdown2","forks_url":"https://api.github.com/repos/trentm/python-markdown2/forks","keys_url":"https://api.github.com/repos/trentm/python-markdown2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/trentm/python-markdown2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/trentm/python-markdown2/teams","hooks_url":"https://api.github.com/repos/trentm/python-markdown2/hooks","issue_events_url":"https://api.github.com/repos/trentm/python-markdown2/issues/events{/number}","events_url":"https://api.github.com/repos/trentm/python-markdown2/events","assignees_url":"https://api.github.com/repos/trentm/python-markdown2/assignees{/user}","branches_url":"https://api.github.com/repos/trentm/python-markdown2/branches{/branch}","tags_url":"https://api.github.com/repos/trentm/python-markdown2/tags","blobs_url":"https://api.github.com/repos/trentm/python-markdown2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/trentm/python-markdown2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/trentm/python-markdown2/git/refs{/sha}","trees_url":"https://api.github.com/repos/trentm/python-markdown2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/trentm/python-markdown2/statuses/{sha}","languages_url":"https://api.github.com/repos/trentm/python-markdown2/languages","stargazers_url":"https://api.github.com/repos/trentm/python-markdown2/stargazers","contributors_url":"https://api.github.com/repos/trentm/python-markdown2/contributors","subscribers_url":"https://api.github.com/repos/trentm/python-markdown2/subscribers","subscription_url":"https://api.github.com/repos/trentm/python-markdown2/subscription","commits_url":"https://api.github.com/repos/trentm/python-markdown2/commits{/sha}","git_commits_url":"https://api.github.com/repos/trentm/python-markdown2/git/commits{/sha}","comments_url":"https://api.github.com/repos/trentm/python-markdown2/comments{/number}","issue_comment_url":"https://api.github.com/repos/trentm/python-markdown2/issues/comments{/number}","contents_url":"https://api.github.com/repos/trentm/python-markdown2/contents/{+path}","compare_url":"https://api.github.com/repos/trentm/python-markdown2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/trentm/python-markdown2/merges","archive_url":"https://api.github.com/repos/trentm/python-markdown2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/trentm/python-markdown2/downloads","issues_url":"https://api.github.com/repos/trentm/python-markdown2/issues{/number}","pulls_url":"https://api.github.com/repos/trentm/python-markdown2/pulls{/number}","milestones_url":"https://api.github.com/repos/trentm/python-markdown2/milestones{/number}","notifications_url":"https://api.github.com/repos/trentm/python-markdown2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/trentm/python-markdown2/labels{/name}","releases_url":"https://api.github.com/repos/trentm/python-markdown2/releases{/id}","deployments_url":"https://api.github.com/repos/trentm/python-markdown2/deployments","created_at":"2011-01-31T00:30:02Z","updated_at":"2016-05-20T10:25:41Z","pushed_at":"2016-05-23T03:45:05Z","git_url":"git://github.com/trentm/python-markdown2.git","ssh_url":"git@github.com:trentm/python-markdown2.git","clone_url":"https://github.com/trentm/python-markdown2.git","svn_url":"https://github.com/trentm/python-markdown2","homepage":"","size":1739,"stargazers_count":1080,"watchers_count":1080,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":164,"mirror_url":null,"open_issues_count":67,"forks":164,"open_issues":67,"watchers":1080,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/trentm/python-markdown2/pulls/210"},"html":{"href":"https://github.com/trentm/python-markdown2/pull/210"},"issue":{"href":"https://api.github.com/repos/trentm/python-markdown2/issues/210"},"comments":{"href":"https://api.github.com/repos/trentm/python-markdown2/issues/210/comments"},"review_comments":{"href":"https://api.github.com/repos/trentm/python-markdown2/pulls/210/comments"},"review_comment":{"href":"https://api.github.com/repos/trentm/python-markdown2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/trentm/python-markdown2/pulls/210/commits"},"statuses":{"href":"https://api.github.com/repos/trentm/python-markdown2/statuses/3ade2160c4b2c4eda0d2dfa944b863f1d93624b3"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"nicholasserra","id":512288,"avatar_url":"https://avatars.githubusercontent.com/u/512288?v=3","gravatar_id":"","url":"https://api.github.com/users/nicholasserra","html_url":"https://github.com/nicholasserra","followers_url":"https://api.github.com/users/nicholasserra/followers","following_url":"https://api.github.com/users/nicholasserra/following{/other_user}","gists_url":"https://api.github.com/users/nicholasserra/gists{/gist_id}","starred_url":"https://api.github.com/users/nicholasserra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicholasserra/subscriptions","organizations_url":"https://api.github.com/users/nicholasserra/orgs","repos_url":"https://api.github.com/users/nicholasserra/repos","events_url":"https://api.github.com/users/nicholasserra/events{/privacy}","received_events_url":"https://api.github.com/users/nicholasserra/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":2,"additions":11,"deletions":1,"changed_files":5}}
{"actor":{"display_login":"nicholasserra"}}