{"action":"created","issue":{"url":"https://api.github.com/repos/ylian/unmarked/issues/1","labels_url":"https://api.github.com/repos/ylian/unmarked/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/ylian/unmarked/issues/1/comments","events_url":"https://api.github.com/repos/ylian/unmarked/issues/1/events","html_url":"https://github.com/ylian/unmarked/issues/1","id":117905155,"number":1,"title":"Handling \"colorized\" code blocks","user":{"login":"ttscoff","id":47833,"avatar_url":"https://avatars.githubusercontent.com/u/47833?v=3","gravatar_id":"","url":"https://api.github.com/users/ttscoff","html_url":"https://github.com/ttscoff","followers_url":"https://api.github.com/users/ttscoff/followers","following_url":"https://api.github.com/users/ttscoff/following{/other_user}","gists_url":"https://api.github.com/users/ttscoff/gists{/gist_id}","starred_url":"https://api.github.com/users/ttscoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttscoff/subscriptions","organizations_url":"https://api.github.com/users/ttscoff/orgs","repos_url":"https://api.github.com/users/ttscoff/repos","events_url":"https://api.github.com/users/ttscoff/events{/privacy}","received_events_url":"https://api.github.com/users/ttscoff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-19T20:51:39Z","updated_at":"2015-11-19T20:58:40Z","closed_at":null,"body":"I haven't dug into the code much yet, but I think it would be a worthwhile feature (or option) to be able to automatically strip markup tags from colorized code blocks. It seems to work fine in a plan `pre>code` situation, but a code block such as found on [this post](http://brettterpstra.com/2015/11/16/shell-tricks-convert-file-urls-to-unix-paths/) causes the contents to be escaped and newlines stripped.\r\n\r\nIn the case above, it would just mean exploding the span tags, but there are a lot of highlighting systems that create tables and other crap. I'd be fine with ignoring those.\r\n\r\nGiven its use in Quiver, this seems like it would be useful, no?"},"comment":{"url":"https://api.github.com/repos/ylian/unmarked/issues/comments/158195745","html_url":"https://github.com/ylian/unmarked/issues/1#issuecomment-158195745","issue_url":"https://api.github.com/repos/ylian/unmarked/issues/1","id":158195745,"user":{"login":"ylian","id":984895,"avatar_url":"https://avatars.githubusercontent.com/u/984895?v=3","gravatar_id":"","url":"https://api.github.com/users/ylian","html_url":"https://github.com/ylian","followers_url":"https://api.github.com/users/ylian/followers","following_url":"https://api.github.com/users/ylian/following{/other_user}","gists_url":"https://api.github.com/users/ylian/gists{/gist_id}","starred_url":"https://api.github.com/users/ylian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ylian/subscriptions","organizations_url":"https://api.github.com/users/ylian/orgs","repos_url":"https://api.github.com/users/ylian/repos","events_url":"https://api.github.com/users/ylian/events{/privacy}","received_events_url":"https://api.github.com/users/ylian/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T20:58:39Z","updated_at":"2015-11-19T20:58:39Z","body":"Thanks, Brett. This library can only handle basic cases right now. It's only a starting point.\r\nI will add a web clipper to Quiver, and scraping code blocks is in my plan. It probably will involve two libraries: unmarked and [declutter](https://github.com/ylian/declutter). Both libraries are still in their early form."}}