{"action":"created","issue":{"url":"https://api.github.com/repos/Alir3z4/html2text/issues/61","labels_url":"https://api.github.com/repos/Alir3z4/html2text/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/Alir3z4/html2text/issues/61/comments","events_url":"https://api.github.com/repos/Alir3z4/html2text/issues/61/events","html_url":"https://github.com/Alir3z4/html2text/issues/61","id":70095703,"number":61,"title":"Malformed output of links","user":{"login":"barsch","id":602450,"avatar_url":"https://avatars.githubusercontent.com/u/602450?v=3","gravatar_id":"","url":"https://api.github.com/users/barsch","html_url":"https://github.com/barsch","followers_url":"https://api.github.com/users/barsch/followers","following_url":"https://api.github.com/users/barsch/following{/other_user}","gists_url":"https://api.github.com/users/barsch/gists{/gist_id}","starred_url":"https://api.github.com/users/barsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barsch/subscriptions","organizations_url":"https://api.github.com/users/barsch/orgs","repos_url":"https://api.github.com/users/barsch/repos","events_url":"https://api.github.com/users/barsch/events{/privacy}","received_events_url":"https://api.github.com/users/barsch/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Alir3z4/html2text/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-04-22T10:58:57Z","updated_at":"2015-06-23T14:30:59Z","closed_at":"2015-06-03T07:30:57Z","body":"```python\r\n>>> import html2text\r\n>>> h = html2text.HTML2Text()\r\n>>> h.handle('<a href=\"http://www.test.com\">http://www.test.com</a>')  #  this fails\r\nu'<http://www.test.com>\\n\\n'\r\n>>> h.handle('<a href=\"http://www.test.com/\">http://www.test.com</a>')  # adding slash works\r\nu'[http://www.test.com](http://www.test.com/)\\n\\n'\r\n```\r\nwhile this works as expected\r\n\r\n```python\r\n>>> h.handle('<a href=\"http://www.test.com/\">test</a>')\r\nu'[test](http://www.test.com/)\\n\\n'\r\n>>> h.handle('<a href=\"http://www.test.com\">test</a>')\r\nu'[test](http://www.test.com)\\n\\n'\r\n```"},"comment":{"url":"https://api.github.com/repos/Alir3z4/html2text/issues/comments/114525653","html_url":"https://github.com/Alir3z4/html2text/issues/61#issuecomment-114525653","issue_url":"https://api.github.com/repos/Alir3z4/html2text/issues/61","id":114525653,"user":{"login":"theSage21","id":7693265,"avatar_url":"https://avatars.githubusercontent.com/u/7693265?v=3","gravatar_id":"","url":"https://api.github.com/users/theSage21","html_url":"https://github.com/theSage21","followers_url":"https://api.github.com/users/theSage21/followers","following_url":"https://api.github.com/users/theSage21/following{/other_user}","gists_url":"https://api.github.com/users/theSage21/gists{/gist_id}","starred_url":"https://api.github.com/users/theSage21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theSage21/subscriptions","organizations_url":"https://api.github.com/users/theSage21/orgs","repos_url":"https://api.github.com/users/theSage21/repos","events_url":"https://api.github.com/users/theSage21/events{/privacy}","received_events_url":"https://api.github.com/users/theSage21/received_events","type":"User","site_admin":false},"created_at":"2015-06-23T14:30:59Z","updated_at":"2015-06-23T14:30:59Z","body":"@Alir3z4 Sorry, just noticed it. Yes `--reference-link` does it."}}