{"action":"closed","issue":{"url":"https://api.github.com/repos/russross/blackfriday/issues/96","labels_url":"https://api.github.com/repos/russross/blackfriday/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/russross/blackfriday/issues/96/comments","events_url":"https://api.github.com/repos/russross/blackfriday/issues/96/events","html_url":"https://github.com/russross/blackfriday/issues/96","id":39101621,"number":96,"title":"Bug handling HTML blockquote if no markdown outside of the blockquote","user":{"login":"buro9","id":72949,"avatar_url":"https://avatars.githubusercontent.com/u/72949?v=3","gravatar_id":"","url":"https://api.github.com/users/buro9","html_url":"https://github.com/buro9","followers_url":"https://api.github.com/users/buro9/followers","following_url":"https://api.github.com/users/buro9/following{/other_user}","gists_url":"https://api.github.com/users/buro9/gists{/gist_id}","starred_url":"https://api.github.com/users/buro9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buro9/subscriptions","organizations_url":"https://api.github.com/users/buro9/orgs","repos_url":"https://api.github.com/users/buro9/repos","events_url":"https://api.github.com/users/buro9/events{/privacy}","received_events_url":"https://api.github.com/users/buro9/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-07-30T15:05:31Z","updated_at":"2015-11-08T18:17:11Z","closed_at":"2015-11-08T18:17:11Z","body":"Given this input:\r\n```md\r\n<blockquote>Got this today... Leg hurts\r\n\r\n![](http://farm6.static.flickr.com/5083/5258310683_f7c87edbc4_z.jpg)</blockquote>\r\n```\r\n\r\nThe image inside the blockquote remains as markdown after processing with blackfriday.\r\n\r\nOut:\r\n```html\r\n<blockquote>Got this today... Leg hurts\r\n\r\n![](http://farm6.static.flickr.com/5083/5258310683_f7c87edbc4_z.jpg)</blockquote>\r\n```\r\n\r\nExpected... the markdown image tag to become an HTML IMG element.\r\n\r\nBut, if you add *any* markdown outside of the blockquote, then the markdown image tag is converted to HTML though the HTML is invalid (nesting of paragraphs is wrong):\r\n\r\nInput:\r\n```md\r\n**bold**\r\n<blockquote>Got this today... Leg hurts\r\n\r\n![](http://farm6.static.flickr.com/5083/5258310683_f7c87edbc4_z.jpg)</blockquote>\r\n```\r\n\r\nOut:\r\n```html\r\n<p><strong>bold</strong><br />\r\n<blockquote>Got this today... Leg hurts</p>\r\n\t\t\r\n<p><img src=\"http://farm6.static.flickr.com/5083/5258310683_f7c87edbc4_z.jpg\" alt=\"\" />\r\n</blockquote></p>\r\n```\r\n\r\nExpected:\r\n```html\r\n<p><strong>bold</strong></p>\r\n<blockquote>Got this today... Leg hurts\r\n\t\t\r\n<img src=\"http://farm6.static.flickr.com/5083/5258310683_f7c87edbc4_z.jpg\" alt=\"\" />\r\n</blockquote>\r\n```"}}