{"action":"opened","issue":{"url":"https://api.github.com/repos/waylan/Python-Markdown/issues/439","labels_url":"https://api.github.com/repos/waylan/Python-Markdown/issues/439/labels{/name}","comments_url":"https://api.github.com/repos/waylan/Python-Markdown/issues/439/comments","events_url":"https://api.github.com/repos/waylan/Python-Markdown/issues/439/events","html_url":"https://github.com/waylan/Python-Markdown/issues/439","id":115308767,"number":439,"title":"Smartypants removes needed newlines","user":{"login":"munificent","id":46275,"avatar_url":"https://avatars.githubusercontent.com/u/46275?v=3","gravatar_id":"","url":"https://api.github.com/users/munificent","html_url":"https://github.com/munificent","followers_url":"https://api.github.com/users/munificent/followers","following_url":"https://api.github.com/users/munificent/following{/other_user}","gists_url":"https://api.github.com/users/munificent/gists{/gist_id}","starred_url":"https://api.github.com/users/munificent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/munificent/subscriptions","organizations_url":"https://api.github.com/users/munificent/orgs","repos_url":"https://api.github.com/users/munificent/repos","events_url":"https://api.github.com/users/munificent/events{/privacy}","received_events_url":"https://api.github.com/users/munificent/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-05T15:31:45Z","updated_at":"2015-11-05T15:31:45Z","closed_at":null,"body":"Hey, long time listener first time caller. Python Markdown is wonderful. I even wrote [a book](https://github.com/munificent/game-programming-patterns) using it.\r\n\r\nAfter all these years, I finally stumbled onto a bug:\r\n\r\n```python\r\nimport markdown\r\n\r\nsource = \"\"\"\r\nA line that 'wraps' with\r\n*emphasis* at the beginning of the next line.\r\n\"\"\"\r\n\r\nprint markdown.markdown(source, ['smarty'])\r\nprint markdown.markdown(source)\r\n```\r\n\r\nThis prints:\r\n\r\n```\r\n<p>A line that &lsquo;wraps&rsquo; with<em>emphasis</em> at the beginning of the next line.</p>\r\n<p>A line that 'wraps' with\r\n<em>emphasis</em> at the beginning of the next line.</p>\r\n```\r\n\r\nThe first output is wrong because without the newline between `with` and `<em>emphasis</em>`, it renders as \"with*emphasis*\"."}}