{"action":"created","issue":{"url":"https://api.github.com/repos/gogits/gogs/issues/4366","repository_url":"https://api.github.com/repos/gogits/gogs","labels_url":"https://api.github.com/repos/gogits/gogs/issues/4366/labels{/name}","comments_url":"https://api.github.com/repos/gogits/gogs/issues/4366/comments","events_url":"https://api.github.com/repos/gogits/gogs/issues/4366/events","html_url":"https://github.com/gogits/gogs/issues/4366","id":218174125,"number":4366,"title":"ipynb Markdown images with relative path are not displayed","user":{"login":"NiklasRosenstein","id":1318438,"avatar_url":"https://avatars1.githubusercontent.com/u/1318438?v=3","gravatar_id":"","url":"https://api.github.com/users/NiklasRosenstein","html_url":"https://github.com/NiklasRosenstein","followers_url":"https://api.github.com/users/NiklasRosenstein/followers","following_url":"https://api.github.com/users/NiklasRosenstein/following{/other_user}","gists_url":"https://api.github.com/users/NiklasRosenstein/gists{/gist_id}","starred_url":"https://api.github.com/users/NiklasRosenstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NiklasRosenstein/subscriptions","organizations_url":"https://api.github.com/users/NiklasRosenstein/orgs","repos_url":"https://api.github.com/users/NiklasRosenstein/repos","events_url":"https://api.github.com/users/NiklasRosenstein/events{/privacy}","received_events_url":"https://api.github.com/users/NiklasRosenstein/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-03-30T12:02:13Z","updated_at":"2017-03-30T15:26:21Z","closed_at":null,"body":"If you have a Jupyter Notebook (`.ipynb`) that contains some Markdown which references an image by relative path, eg.\r\n\r\n    ![](img/capture_crop.png)\r\n\r\nthe image is NOT displayed when viewing the notebook in Gogs. Of course, this makes sense because the raw image does not exist under such a URL. Would it be possible to post-process such relative URLs and point them to the right URL, i.e. `/user/repo/raw/master/img/capture_crop.png`?\r\n\r\nExample here: https://try.gogs.io/niklas/ipynb-test"},"comment":{"url":"https://api.github.com/repos/gogits/gogs/issues/comments/290446630","html_url":"https://github.com/gogits/gogs/issues/4366#issuecomment-290446630","issue_url":"https://api.github.com/repos/gogits/gogs/issues/4366","id":290446630,"user":{"login":"Unknwon","id":2946214,"avatar_url":"https://avatars0.githubusercontent.com/u/2946214?v=3","gravatar_id":"","url":"https://api.github.com/users/Unknwon","html_url":"https://github.com/Unknwon","followers_url":"https://api.github.com/users/Unknwon/followers","following_url":"https://api.github.com/users/Unknwon/following{/other_user}","gists_url":"https://api.github.com/users/Unknwon/gists{/gist_id}","starred_url":"https://api.github.com/users/Unknwon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Unknwon/subscriptions","organizations_url":"https://api.github.com/users/Unknwon/orgs","repos_url":"https://api.github.com/users/Unknwon/repos","events_url":"https://api.github.com/users/Unknwon/events{/privacy}","received_events_url":"https://api.github.com/users/Unknwon/received_events","type":"User","site_admin":false},"created_at":"2017-03-30T15:26:21Z","updated_at":"2017-03-30T15:26:21Z","body":"So I think it is not possible currently."}}
{"actor":{"display_login":"Unknwon"}}