{"action":"created","issue":{"url":"https://api.github.com/repos/revolunet/sublimetext-markdown-preview/issues/296","labels_url":"https://api.github.com/repos/revolunet/sublimetext-markdown-preview/issues/296/labels{/name}","comments_url":"https://api.github.com/repos/revolunet/sublimetext-markdown-preview/issues/296/comments","events_url":"https://api.github.com/repos/revolunet/sublimetext-markdown-preview/issues/296/events","html_url":"https://github.com/revolunet/sublimetext-markdown-preview/issues/296","id":105395872,"number":296,"title":"colon in URL","user":{"login":"smi11","id":12071316,"avatar_url":"https://avatars.githubusercontent.com/u/12071316?v=3","gravatar_id":"","url":"https://api.github.com/users/smi11","html_url":"https://github.com/smi11","followers_url":"https://api.github.com/users/smi11/followers","following_url":"https://api.github.com/users/smi11/following{/other_user}","gists_url":"https://api.github.com/users/smi11/gists{/gist_id}","starred_url":"https://api.github.com/users/smi11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smi11/subscriptions","organizations_url":"https://api.github.com/users/smi11/orgs","repos_url":"https://api.github.com/users/smi11/repos","events_url":"https://api.github.com/users/smi11/events{/privacy}","received_events_url":"https://api.github.com/users/smi11/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/revolunet/sublimetext-markdown-preview/labels/bug","name":"bug","color":"e10c02"}],"state":"closed","locked":false,"assignee":{"login":"facelessuser","id":1055125,"avatar_url":"https://avatars.githubusercontent.com/u/1055125?v=3","gravatar_id":"","url":"https://api.github.com/users/facelessuser","html_url":"https://github.com/facelessuser","followers_url":"https://api.github.com/users/facelessuser/followers","following_url":"https://api.github.com/users/facelessuser/following{/other_user}","gists_url":"https://api.github.com/users/facelessuser/gists{/gist_id}","starred_url":"https://api.github.com/users/facelessuser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facelessuser/subscriptions","organizations_url":"https://api.github.com/users/facelessuser/orgs","repos_url":"https://api.github.com/users/facelessuser/repos","events_url":"https://api.github.com/users/facelessuser/events{/privacy}","received_events_url":"https://api.github.com/users/facelessuser/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-09-08T14:38:42Z","updated_at":"2015-12-06T17:18:36Z","closed_at":"2015-12-05T19:50:17Z","body":"My markdown files have often links containing colon. Such markdown files fail to render with MarkdownPreview.\r\n\r\nExample valid link:\r\nhttps://courses.edx.org/courses/course-v1:BerkeleyX+GG101x+3T2015/courseware/87a692d1ab3e4e3bb0cf3d7de904c156/5b56cf2834ba4476b7e1bc8b6257280c/\r\n(notice there is colon before BerkeleyX)\r\n\r\nAs you can see from traceback proveded below, the colon is replaced by | and some error message is reported about bad URL and rendering fails. Could this be fixed? Thanks.\r\n\r\nTraceback (most recent call last):\r\n  File \"C:\\Program Files\\Sublime Text 3\\sublime_plugin.py\", line 550, in run_\r\n    return self.run(edit, **args)\r\n  File \"MarkdownPreview in C:\\Users\\smi\\AppData\\Roaming\\Sublime Text 3\\Installed Packages\\Markdown Preview.sublime-package\", line 1126, in run\r\n  File \"MarkdownPreview in C:\\Users\\smi\\AppData\\Roaming\\Sublime Text 3\\Installed Packages\\Markdown Preview.sublime-package\", line 759, in run\r\n  File \"MarkdownPreview in C:\\Users\\smi\\AppData\\Roaming\\Sublime Text 3\\Installed Packages\\Markdown Preview.sublime-package\", line 708, in convert_markdown\r\n  File \"MarkdownPreview in C:\\Users\\smi\\AppData\\Roaming\\Sublime Text 3\\Installed Packages\\Markdown Preview.sublime-package\", line 553, in postprocessor_pathconverter\r\n  File \"MarkdownPreview in C:\\Users\\smi\\AppData\\Roaming\\Sublime Text 3\\Installed Packages\\Markdown Preview.sublime-package\", line 553, in <lambda>\r\n  File \"MarkdownPreview in C:\\Users\\smi\\AppData\\Roaming\\Sublime Text 3\\Installed Packages\\Markdown Preview.sublime-package\", line 541, in repl\r\n  File \"MarkdownPreview in C:\\Users\\smi\\AppData\\Roaming\\Sublime Text 3\\Installed Packages\\Markdown Preview.sublime-package\", line 541, in <lambda>\r\n  File \"MarkdownPreview in C:\\Users\\smi\\AppData\\Roaming\\Sublime Text 3\\Installed Packages\\Markdown Preview.sublime-package\", line 281, in repl_absolute\r\n  File \"./nturl2path.py\", line 26, in url2pathname\r\nOSError: Bad URL: /courses/course-v1|BerkeleyX+GG101x+3T2015/courseware/89757399587a49b7bf91b3c907744270/dd810b686ac44f01a7ac1251ffe50ff9/\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/revolunet/sublimetext-markdown-preview/issues/comments/162330113","html_url":"https://github.com/revolunet/sublimetext-markdown-preview/issues/296#issuecomment-162330113","issue_url":"https://api.github.com/repos/revolunet/sublimetext-markdown-preview/issues/296","id":162330113,"user":{"login":"smi11","id":12071316,"avatar_url":"https://avatars.githubusercontent.com/u/12071316?v=3","gravatar_id":"","url":"https://api.github.com/users/smi11","html_url":"https://github.com/smi11","followers_url":"https://api.github.com/users/smi11/followers","following_url":"https://api.github.com/users/smi11/following{/other_user}","gists_url":"https://api.github.com/users/smi11/gists{/gist_id}","starred_url":"https://api.github.com/users/smi11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smi11/subscriptions","organizations_url":"https://api.github.com/users/smi11/orgs","repos_url":"https://api.github.com/users/smi11/repos","events_url":"https://api.github.com/users/smi11/events{/privacy}","received_events_url":"https://api.github.com/users/smi11/received_events","type":"User","site_admin":false},"created_at":"2015-12-06T17:18:36Z","updated_at":"2015-12-06T17:18:36Z","body":"Sorry, but the issue with colon in URL returned today after update to new version.\r\n\r\nSample URL somewhere in text:\r\n/asset-v1:W3Cx+HTML5.2x+4T2015+type@asset+block/StereoVolumeMeters.jpg\r\n\r\nconsole log:\r\nTraceback (most recent call last):\r\n  File \"C:\\Program Files\\Sublime Text 3\\sublime_plugin.py\", line 550, in run_\r\n    return self.run(edit, **args)\r\n  File \"MarkdownPreview in C:\\Users\\smi\\AppData\\Roaming\\Sublime Text 3\\Installed Packages\\Markdown Preview.sublime-package\", line 1172, in run\r\n  File \"MarkdownPreview in C:\\Users\\smi\\AppData\\Roaming\\Sublime Text 3\\Installed Packages\\Markdown Preview.sublime-package\", line 762, in run\r\n  File \"MarkdownPreview in C:\\Users\\smi\\AppData\\Roaming\\Sublime Text 3\\Installed Packages\\Markdown Preview.sublime-package\", line 711, in convert_markdown\r\n  File \"MarkdownPreview in C:\\Users\\smi\\AppData\\Roaming\\Sublime Text 3\\Installed Packages\\Markdown Preview.sublime-package\", line 556, in postprocessor_pathconverter\r\n  File \"MarkdownPreview in C:\\Users\\smi\\AppData\\Roaming\\Sublime Text 3\\Installed Packages\\Markdown Preview.sublime-package\", line 556, in <lambda>\r\n  File \"MarkdownPreview in C:\\Users\\smi\\AppData\\Roaming\\Sublime Text 3\\Installed Packages\\Markdown Preview.sublime-package\", line 544, in repl\r\n  File \"MarkdownPreview in C:\\Users\\smi\\AppData\\Roaming\\Sublime Text 3\\Installed Packages\\Markdown Preview.sublime-package\", line 544, in <lambda>\r\n  File \"MarkdownPreview in C:\\Users\\smi\\AppData\\Roaming\\Sublime Text 3\\Installed Packages\\Markdown Preview.sublime-package\", line 286, in repl_absolute\r\n  File \"./nturl2path.py\", line 26, in url2pathname\r\nOSError: Bad URL: /asset-v1|W3Cx+HTML5.2x+4T2015+type@asset+block/StereoVolumeMeters.jpg\r\n\r\nThanks for looking into this issue.\r\n\r\nKind regards\r\nMilan"}}