{"action":"created","issue":{"url":"https://api.github.com/repos/markedjs/marked/issues/1369","repository_url":"https://api.github.com/repos/markedjs/marked","labels_url":"https://api.github.com/repos/markedjs/marked/issues/1369/labels{/name}","comments_url":"https://api.github.com/repos/markedjs/marked/issues/1369/comments","events_url":"https://api.github.com/repos/markedjs/marked/issues/1369/events","html_url":"https://github.com/markedjs/marked/issues/1369","id":375073005,"node_id":"MDU6SXNzdWUzNzUwNzMwMDU=","number":1369,"title":"Images with space in the URI don't get parsed","user":{"login":"woodyrew","id":1902064,"node_id":"MDQ6VXNlcjE5MDIwNjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1902064?v=4","gravatar_id":"","url":"https://api.github.com/users/woodyrew","html_url":"https://github.com/woodyrew","followers_url":"https://api.github.com/users/woodyrew/followers","following_url":"https://api.github.com/users/woodyrew/following{/other_user}","gists_url":"https://api.github.com/users/woodyrew/gists{/gist_id}","starred_url":"https://api.github.com/users/woodyrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woodyrew/subscriptions","organizations_url":"https://api.github.com/users/woodyrew/orgs","repos_url":"https://api.github.com/users/woodyrew/repos","events_url":"https://api.github.com/users/woodyrew/events{/privacy}","received_events_url":"https://api.github.com/users/woodyrew/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-29T15:27:21Z","updated_at":"2018-10-30T11:56:34Z","closed_at":null,"author_association":"NONE","body":"Images with spaces in the filepath are no longer being parsed correctly.\r\n\r\n**To Reproduce**\r\nProcess the following doesn't see match an image.\r\n```![Example image](https://example.com/image space.png)```\r\n\r\nSee [Marked Demo for example](https://marked.js.org/demo/?text=!%5BExample%20image%5D(https%3A%2F%2Fexample.com%2Fimage%20with%20spaces.png)%0AExpected%20the%20url%20to%20be%20made%20html%20friendly%20by%20replacing%20spaces%20with%20%60%2520%60.%0A%0AE.g.%0A!%5BExample%20image%5D(https%3A%2F%2Fexample.com%2Fimage%2620with%2520spaces.png)%0A&options=%7B%0A%20%22baseUrl%22%3A%20null%2C%0A%20%22breaks%22%3A%20true%2C%0A%20%22gfm%22%3A%20true%2C%0A%20%22headerIds%22%3A%20true%2C%0A%20%22headerPrefix%22%3A%20%22%22%2C%0A%20%22highlight%22%3A%20null%2C%0A%20%22langPrefix%22%3A%20%22language-%22%2C%0A%20%22mangle%22%3A%20true%2C%0A%20%22pedantic%22%3A%20false%2C%0A%20%22sanitize%22%3A%20true%2C%0A%20%22sanitizer%22%3A%20null%2C%0A%20%22silent%22%3A%20false%2C%0A%20%22smartLists%22%3A%20false%2C%0A%20%22smartypants%22%3A%20false%2C%0A%20%22tables%22%3A%20true%2C%0A%20%22xhtml%22%3A%20false%0A%7D)\r\n\r\n1. Install marked `npm install --save marked@0.5.1` with the version you are using\r\n2. Run marked with input string and options such as `marked('![Example image](https://example.com/image space.png)', {sanitize: true})`\r\n\r\n**Expected behavior**\r\nExpected the url to be made html friendly with the switch `sanitize` by replacing spaces with `%20`.\r\n"},"comment":{"url":"https://api.github.com/repos/markedjs/marked/issues/comments/434272344","html_url":"https://github.com/markedjs/marked/issues/1369#issuecomment-434272344","issue_url":"https://api.github.com/repos/markedjs/marked/issues/1369","id":434272344,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDI3MjM0NA==","user":{"login":"woodyrew","id":1902064,"node_id":"MDQ6VXNlcjE5MDIwNjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1902064?v=4","gravatar_id":"","url":"https://api.github.com/users/woodyrew","html_url":"https://github.com/woodyrew","followers_url":"https://api.github.com/users/woodyrew/followers","following_url":"https://api.github.com/users/woodyrew/following{/other_user}","gists_url":"https://api.github.com/users/woodyrew/gists{/gist_id}","starred_url":"https://api.github.com/users/woodyrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woodyrew/subscriptions","organizations_url":"https://api.github.com/users/woodyrew/orgs","repos_url":"https://api.github.com/users/woodyrew/repos","events_url":"https://api.github.com/users/woodyrew/events{/privacy}","received_events_url":"https://api.github.com/users/woodyrew/received_events","type":"User","site_admin":false},"created_at":"2018-10-30T11:56:34Z","updated_at":"2018-10-30T11:56:34Z","author_association":"NONE","body":"I'm aware of the Common Mark Spec and the workaround but it feels within the scope of the `sanitize` switch to address this."}}
{"actor":{"display_login":"woodyrew"}}