{"action":"created","issue":{"url":"https://api.github.com/repos/evilstreak/markdown-js/issues/292","repository_url":"https://api.github.com/repos/evilstreak/markdown-js","labels_url":"https://api.github.com/repos/evilstreak/markdown-js/issues/292/labels{/name}","comments_url":"https://api.github.com/repos/evilstreak/markdown-js/issues/292/comments","events_url":"https://api.github.com/repos/evilstreak/markdown-js/issues/292/events","html_url":"https://github.com/evilstreak/markdown-js/issues/292","id":230244612,"number":292,"title":"two blank lines break the code block","user":{"login":"ckcks12","id":12825679,"avatar_url":"https://avatars3.githubusercontent.com/u/12825679?v=4","gravatar_id":"","url":"https://api.github.com/users/ckcks12","html_url":"https://github.com/ckcks12","followers_url":"https://api.github.com/users/ckcks12/followers","following_url":"https://api.github.com/users/ckcks12/following{/other_user}","gists_url":"https://api.github.com/users/ckcks12/gists{/gist_id}","starred_url":"https://api.github.com/users/ckcks12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckcks12/subscriptions","organizations_url":"https://api.github.com/users/ckcks12/orgs","repos_url":"https://api.github.com/users/ckcks12/repos","events_url":"https://api.github.com/users/ckcks12/events{/privacy}","received_events_url":"https://api.github.com/users/ckcks12/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-05-21T19:56:15Z","updated_at":"2018-03-28T08:01:11Z","closed_at":null,"author_association":"NONE","body":"original text\r\n```\r\nfunction foo() {\r\n    console.log(this);\r\n}\r\n// below two blank lines cause a bug\r\n\r\n\r\n```\r\nusing markdown\r\n```\r\nmarkdown.toHTML('```\\n\\\r\nfunction foo() {\\n\\\r\n    console.log(this);\\n\\\r\n}\\n\\\r\n// below two blank lines cause a bug\\n\\\r\n\\n\\\r\n\\n\\\r\n```')\r\n```\r\nconverted\r\n```\r\n\"<p><code></code>`\r\nfunction foo() {\r\n    console.log(this);\r\n}\r\n// below two blank lines cause a bug</p>\r\n\r\n<p><code></code>`</p>\"\r\n```\r\n\r\nIs that a bug or my mistake?"},"comment":{"url":"https://api.github.com/repos/evilstreak/markdown-js/issues/comments/376797193","html_url":"https://github.com/evilstreak/markdown-js/issues/292#issuecomment-376797193","issue_url":"https://api.github.com/repos/evilstreak/markdown-js/issues/292","id":376797193,"user":{"login":"clChenLiang","id":13596193,"avatar_url":"https://avatars2.githubusercontent.com/u/13596193?v=4","gravatar_id":"","url":"https://api.github.com/users/clChenLiang","html_url":"https://github.com/clChenLiang","followers_url":"https://api.github.com/users/clChenLiang/followers","following_url":"https://api.github.com/users/clChenLiang/following{/other_user}","gists_url":"https://api.github.com/users/clChenLiang/gists{/gist_id}","starred_url":"https://api.github.com/users/clChenLiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clChenLiang/subscriptions","organizations_url":"https://api.github.com/users/clChenLiang/orgs","repos_url":"https://api.github.com/users/clChenLiang/repos","events_url":"https://api.github.com/users/clChenLiang/events{/privacy}","received_events_url":"https://api.github.com/users/clChenLiang/received_events","type":"User","site_admin":false},"created_at":"2018-03-28T08:01:11Z","updated_at":"2018-03-28T08:01:11Z","author_association":"NONE","body":"I have try to revise the output of `markdown.toHTML()`  function.\r\nhere the simple code:\r\n```javascript\r\n    html.replace(/<code><\\/code>\\`(?=[^<])/g,'<code>');\r\n    html.replace(/<code><\\/code>\\`(?=<)/g, '<\\/code>');\r\n```"}}
{"actor":{"display_login":"clChenLiang"}}