{"action":"created","issue":{"url":"https://api.github.com/repos/npm/marky-markdown/issues/306","repository_url":"https://api.github.com/repos/npm/marky-markdown","labels_url":"https://api.github.com/repos/npm/marky-markdown/issues/306/labels{/name}","comments_url":"https://api.github.com/repos/npm/marky-markdown/issues/306/comments","events_url":"https://api.github.com/repos/npm/marky-markdown/issues/306/events","html_url":"https://github.com/npm/marky-markdown/issues/306","id":190945809,"number":306,"title":"Relative image URL's are not converted.","user":{"login":"MichMich","id":210954,"avatar_url":"https://avatars.githubusercontent.com/u/210954?v=3","gravatar_id":"","url":"https://api.github.com/users/MichMich","html_url":"https://github.com/MichMich","followers_url":"https://api.github.com/users/MichMich/followers","following_url":"https://api.github.com/users/MichMich/following{/other_user}","gists_url":"https://api.github.com/users/MichMich/gists{/gist_id}","starred_url":"https://api.github.com/users/MichMich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichMich/subscriptions","organizations_url":"https://api.github.com/users/MichMich/orgs","repos_url":"https://api.github.com/users/MichMich/repos","events_url":"https://api.github.com/users/MichMich/events{/privacy}","received_events_url":"https://api.github.com/users/MichMich/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-22T09:22:00Z","updated_at":"2016-11-22T15:38:08Z","closed_at":null,"body":"Hi Guys, first of all thanks for this awesome package!\r\n\r\nI'm trying to use this lib to display some Readme files on a site I'm currently working on. Unfortunately, all the image links I test are broken. The documentation of this package states:\r\n\r\n> Converts relative GitHub images sources to their GitHub raw equivalents.\r\n\r\nSo if I'm not mistaken, this is not the desired outcome.\r\n\r\nFor example, the following README contains a header image: \r\nhttps://raw.githubusercontent.com/MichMich/MagicMirror/master/README.md\r\n\r\n````\r\n![MagicMirror²: The open source modular smart mirror platform. ](.github/header.png)\r\n````\r\nMarky-Markdown converts this into the following html:\r\n````\r\n<img src=\".github/header.png\" alt=\"MagicMirror²: The open source modular smart mirror platform. \">\r\n````\r\n\r\nWhich leaves me with a broken image link om my site's server.\r\n\r\nFYI, I use the client-side (browser) version of Marky-Markdown with the following configuration:\r\n\r\n````\r\nvar html = marky(markdown, {\r\n    highlightSyntax: false,\r\n});\r\n````\r\n\r\nAny idea what I'm doing wrong? Thanks!"},"comment":{"url":"https://api.github.com/repos/npm/marky-markdown/issues/comments/262274303","html_url":"https://github.com/npm/marky-markdown/issues/306#issuecomment-262274303","issue_url":"https://api.github.com/repos/npm/marky-markdown/issues/306","id":262274303,"user":{"login":"revin","id":94850,"avatar_url":"https://avatars.githubusercontent.com/u/94850?v=3","gravatar_id":"","url":"https://api.github.com/users/revin","html_url":"https://github.com/revin","followers_url":"https://api.github.com/users/revin/followers","following_url":"https://api.github.com/users/revin/following{/other_user}","gists_url":"https://api.github.com/users/revin/gists{/gist_id}","starred_url":"https://api.github.com/users/revin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/revin/subscriptions","organizations_url":"https://api.github.com/users/revin/orgs","repos_url":"https://api.github.com/users/revin/repos","events_url":"https://api.github.com/users/revin/events{/privacy}","received_events_url":"https://api.github.com/users/revin/received_events","type":"User","site_admin":false},"created_at":"2016-11-22T15:38:08Z","updated_at":"2016-11-22T15:38:08Z","body":"Hi @MichMich, my guess is that it's because you're not passing the package information into marky. The [\"npm packages\"](https://github.com/npm/marky-markdown/tree/9ec75b4fab46c1cef84f9cb513aee7c123dee100#npm-packages) section of the readme describes it, or you can check out the [unit tests](https://github.com/npm/marky-markdown/blob/9ec75b4fab46c1cef84f9cb513aee7c123dee100/test/repo-github.js#L8-L20) for a quick example."}}
{"actor":{"display_login":"revin"}}