{"action":"created","issue":{"url":"https://api.github.com/repos/11ty/eleventy-plugin-syntaxhighlight/issues/5","repository_url":"https://api.github.com/repos/11ty/eleventy-plugin-syntaxhighlight","labels_url":"https://api.github.com/repos/11ty/eleventy-plugin-syntaxhighlight/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/11ty/eleventy-plugin-syntaxhighlight/issues/5/comments","events_url":"https://api.github.com/repos/11ty/eleventy-plugin-syntaxhighlight/issues/5/events","html_url":"https://github.com/11ty/eleventy-plugin-syntaxhighlight/pull/5","id":362906644,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE3NDg4NDky","number":5,"title":"Support multiple consecutive line breaks in code snippets","user":{"login":"mathiasbynens","id":81942,"node_id":"MDQ6VXNlcjgxOTQy","avatar_url":"https://avatars1.githubusercontent.com/u/81942?v=4","gravatar_id":"","url":"https://api.github.com/users/mathiasbynens","html_url":"https://github.com/mathiasbynens","followers_url":"https://api.github.com/users/mathiasbynens/followers","following_url":"https://api.github.com/users/mathiasbynens/following{/other_user}","gists_url":"https://api.github.com/users/mathiasbynens/gists{/gist_id}","starred_url":"https://api.github.com/users/mathiasbynens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathiasbynens/subscriptions","organizations_url":"https://api.github.com/users/mathiasbynens/orgs","repos_url":"https://api.github.com/users/mathiasbynens/repos","events_url":"https://api.github.com/users/mathiasbynens/events{/privacy}","received_events_url":"https://api.github.com/users/mathiasbynens/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-23T02:13:43Z","updated_at":"2018-09-23T02:47:24Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/11ty/eleventy-plugin-syntaxhighlight/pulls/5","html_url":"https://github.com/11ty/eleventy-plugin-syntaxhighlight/pull/5","diff_url":"https://github.com/11ty/eleventy-plugin-syntaxhighlight/pull/5.diff","patch_url":"https://github.com/11ty/eleventy-plugin-syntaxhighlight/pull/5.patch"},"body":"Previously, repeated consecutive line breaks got eaten by this syntax highlighter plugin.\r\n\r\nConsider this imaginary code snippet:\r\n\r\n    ```\r\n    foo\r\n\r\n    bar\r\n    ```\r\n\r\nThe empty line got turned into an empty `<div class=\"highlight-line\"></div>`, which is a form of data loss — the actual line break is no longer part of the resulting HTML. This caused it to render differently, too.\r\n\r\nThis patch ensures newlines are preserved by explicitly inserting them in the resulting HTML when needed."},"comment":{"url":"https://api.github.com/repos/11ty/eleventy-plugin-syntaxhighlight/issues/comments/423787751","html_url":"https://github.com/11ty/eleventy-plugin-syntaxhighlight/pull/5#issuecomment-423787751","issue_url":"https://api.github.com/repos/11ty/eleventy-plugin-syntaxhighlight/issues/5","id":423787751,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzc4Nzc1MQ==","user":{"login":"mathiasbynens","id":81942,"node_id":"MDQ6VXNlcjgxOTQy","avatar_url":"https://avatars1.githubusercontent.com/u/81942?v=4","gravatar_id":"","url":"https://api.github.com/users/mathiasbynens","html_url":"https://github.com/mathiasbynens","followers_url":"https://api.github.com/users/mathiasbynens/followers","following_url":"https://api.github.com/users/mathiasbynens/following{/other_user}","gists_url":"https://api.github.com/users/mathiasbynens/gists{/gist_id}","starred_url":"https://api.github.com/users/mathiasbynens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathiasbynens/subscriptions","organizations_url":"https://api.github.com/users/mathiasbynens/orgs","repos_url":"https://api.github.com/users/mathiasbynens/repos","events_url":"https://api.github.com/users/mathiasbynens/events{/privacy}","received_events_url":"https://api.github.com/users/mathiasbynens/received_events","type":"User","site_admin":false},"created_at":"2018-09-23T02:47:24Z","updated_at":"2018-09-23T02:47:24Z","author_association":"NONE","body":"See https://github.com/11ty/eleventy-base-blog/pull/21 for an actual example."}}
{"actor":{"display_login":"mathiasbynens"}}