{"action":"opened","issue":{"url":"https://api.github.com/repos/jgm/commonmark.js/issues/39","labels_url":"https://api.github.com/repos/jgm/commonmark.js/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/jgm/commonmark.js/issues/39/comments","events_url":"https://api.github.com/repos/jgm/commonmark.js/issues/39/events","html_url":"https://github.com/jgm/commonmark.js/issues/39","id":76779232,"number":39,"title":"Inconsistent handling of malformed link reference titles","user":{"login":"BigBadaboom","id":840288,"avatar_url":"https://avatars.githubusercontent.com/u/840288?v=3","gravatar_id":"","url":"https://api.github.com/users/BigBadaboom","html_url":"https://github.com/BigBadaboom","followers_url":"https://api.github.com/users/BigBadaboom/followers","following_url":"https://api.github.com/users/BigBadaboom/following{/other_user}","gists_url":"https://api.github.com/users/BigBadaboom/gists{/gist_id}","starred_url":"https://api.github.com/users/BigBadaboom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BigBadaboom/subscriptions","organizations_url":"https://api.github.com/users/BigBadaboom/orgs","repos_url":"https://api.github.com/users/BigBadaboom/repos","events_url":"https://api.github.com/users/BigBadaboom/events{/privacy}","received_events_url":"https://api.github.com/users/BigBadaboom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-15T16:26:39Z","updated_at":"2015-05-15T16:26:39Z","closed_at":null,"body":"Consider these two samples. Both have malformed link titles.\r\n\r\n```\r\n[foo]: /url\r\n\"title\r\n\r\n[foo]\r\n```\r\nhttp://spec.commonmark.org/dingus/?text=%5Bfoo%5D%3A%20%2Furl%0A%22title%0A%0A%5Bfoo%5D\r\n\r\nand\r\n\r\n```\r\n[foo]: /url\r\n\"title\" ok\r\n\r\n[foo]\r\n```\r\nhttp://spec.commonmark.org/dingus/?text=%5Bfoo%5D%3A%20%2Furl%0A%22title%22%20ok%0A%0A%5Bfoo%5D\r\n\r\nThe first sample creates a link reference, but the second one doesn't.  I believe they should both be treated the same - ie. links in both cases.\r\n\r\n"}}