{"action":"created","issue":{"url":"https://api.github.com/repos/brianjgeiger/markdown-it-video/issues/16","repository_url":"https://api.github.com/repos/brianjgeiger/markdown-it-video","labels_url":"https://api.github.com/repos/brianjgeiger/markdown-it-video/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/brianjgeiger/markdown-it-video/issues/16/comments","events_url":"https://api.github.com/repos/brianjgeiger/markdown-it-video/issues/16/events","html_url":"https://github.com/brianjgeiger/markdown-it-video/issues/16","id":159751062,"number":16,"title":"Problem with the output of the plugin","user":{"login":"felixsanz","id":6182099,"avatar_url":"https://avatars.githubusercontent.com/u/6182099?v=3","gravatar_id":"","url":"https://api.github.com/users/felixsanz","html_url":"https://github.com/felixsanz","followers_url":"https://api.github.com/users/felixsanz/followers","following_url":"https://api.github.com/users/felixsanz/following{/other_user}","gists_url":"https://api.github.com/users/felixsanz/gists{/gist_id}","starred_url":"https://api.github.com/users/felixsanz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixsanz/subscriptions","organizations_url":"https://api.github.com/users/felixsanz/orgs","repos_url":"https://api.github.com/users/felixsanz/repos","events_url":"https://api.github.com/users/felixsanz/events{/privacy}","received_events_url":"https://api.github.com/users/felixsanz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-06-11T02:20:30Z","updated_at":"2016-07-08T21:34:21Z","closed_at":null,"body":"The readme says that the plugin output is this:\r\n\r\n> `<p><div class=\"embed-responsive embed-responsive-16by9\"><iframe class=\"embed-responsive-item\" id=\"youtubeplayer\" type=\"text/html\" width=\"640\" height=\"390\"\r\n  src=\"//www.youtube.com/embed/dQw4w9WgXcQ\"\r\n  frameborder=\"0\"/></div></p>`\r\n\r\nFirst, `div` inside `p` is invalid. Paragraphs can only contain inline elements. Anyway this is tricky because i tried to understand your plugin and i can't see the paragraph added anywhere.\r\n\r\nBut my issue is somewhat different, my output is actually this:\r\n\r\n```\r\n<p></p>\r\n<div class=\"embed-responsive embed-responsive-16by9\"><iframe class=\"embed-responsive-item\" id=\"youtubeplayer\" type=\"text/html\" width=\"640\" height=\"390\"\r\n  src=\"//www.youtube.com/embed/dQw4w9WgXcQ\"\r\n  frameborder=\"0\"/></div>\r\n<p></p>\r\n```\r\n\r\nEmpty paragraphs at start and end. Why?\r\n\r\nMy markdown looks like this:\r\n\r\n```\r\n## Heading\r\n\r\nBla bla bla text.\r\n\r\n@[youtube](dQw4w9WgXcQ)\r\n\r\nBla bla bla text.\r\n```\r\n\r\nIf i want to remove the empty paragraphs, i have to use this markdown:\r\n\r\n```\r\n## Heading\r\n\r\nBla bla bla text.\r\n@[youtube](dQw4w9WgXcQ)\r\nBla bla bla text.\r\n```\r\n\r\nWhich is pretty ugly..."},"comment":{"url":"https://api.github.com/repos/brianjgeiger/markdown-it-video/issues/comments/231478406","html_url":"https://github.com/brianjgeiger/markdown-it-video/issues/16#issuecomment-231478406","issue_url":"https://api.github.com/repos/brianjgeiger/markdown-it-video/issues/16","id":231478406,"user":{"login":"felixsanz","id":6182099,"avatar_url":"https://avatars.githubusercontent.com/u/6182099?v=3","gravatar_id":"","url":"https://api.github.com/users/felixsanz","html_url":"https://github.com/felixsanz","followers_url":"https://api.github.com/users/felixsanz/followers","following_url":"https://api.github.com/users/felixsanz/following{/other_user}","gists_url":"https://api.github.com/users/felixsanz/gists{/gist_id}","starred_url":"https://api.github.com/users/felixsanz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixsanz/subscriptions","organizations_url":"https://api.github.com/users/felixsanz/orgs","repos_url":"https://api.github.com/users/felixsanz/repos","events_url":"https://api.github.com/users/felixsanz/events{/privacy}","received_events_url":"https://api.github.com/users/felixsanz/received_events","type":"User","site_admin":false},"created_at":"2016-07-08T21:34:21Z","updated_at":"2016-07-08T21:34:21Z","body":"@brianjgeiger do you think it is possible or too much rework?"}}
{"actor":{"display_login":"felixsanz"}}