{"action":"opened","number":13,"pull_request":{"url":"https://api.github.com/repos/hashrocket/tilex/pulls/13","id":99701811,"html_url":"https://github.com/hashrocket/tilex/pull/13","diff_url":"https://github.com/hashrocket/tilex/pull/13.diff","patch_url":"https://github.com/hashrocket/tilex/pull/13.patch","issue_url":"https://api.github.com/repos/hashrocket/tilex/issues/13","number":13,"state":"open","locked":false,"title":"Add markdown support","user":{"login":"jwworth","id":2782858,"avatar_url":"https://avatars.githubusercontent.com/u/2782858?v=3","gravatar_id":"","url":"https://api.github.com/users/jwworth","html_url":"https://github.com/jwworth","followers_url":"https://api.github.com/users/jwworth/followers","following_url":"https://api.github.com/users/jwworth/following{/other_user}","gists_url":"https://api.github.com/users/jwworth/gists{/gist_id}","starred_url":"https://api.github.com/users/jwworth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwworth/subscriptions","organizations_url":"https://api.github.com/users/jwworth/orgs","repos_url":"https://api.github.com/users/jwworth/repos","events_url":"https://api.github.com/users/jwworth/events{/privacy}","received_events_url":"https://api.github.com/users/jwworth/received_events","type":"User","site_admin":false},"body":"This adds basic markdown parsing. The new module:\n\n- Receives markdown\n- Converts it to HTML via `Earmark`\n- Sanitizes it via `HtmlSanitizeEx`\n- Escapes the result in the template via `raw`\n\nUnfortunately, the sanitization step strips CSS classes, which prevents fenced code blocks with a language tag from being assigned a class based on their language (and thus, styled appropriately).\n\nI've also tried [Phoenix Html Sanitizer](https://github.com/elixirstatus/phoenix_html_sanitizer); the result is the same. I don't think this problem has been solved yet.\n\nUntil we find a solution, erring on the side of over-sanitization, since this handles stuff coming out of the database.","created_at":"2016-12-29T21:46:57Z","updated_at":"2016-12-29T21:46:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/hashrocket/tilex/pulls/13/commits","review_comments_url":"https://api.github.com/repos/hashrocket/tilex/pulls/13/comments","review_comment_url":"https://api.github.com/repos/hashrocket/tilex/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hashrocket/tilex/issues/13/comments","statuses_url":"https://api.github.com/repos/hashrocket/tilex/statuses/2c1bf74f33a139c51c265c74b755102bfcab43cd","head":{"label":"hashrocket:markdown","ref":"markdown","sha":"2c1bf74f33a139c51c265c74b755102bfcab43cd","user":{"login":"hashrocket","id":5875,"avatar_url":"https://avatars.githubusercontent.com/u/5875?v=3","gravatar_id":"","url":"https://api.github.com/users/hashrocket","html_url":"https://github.com/hashrocket","followers_url":"https://api.github.com/users/hashrocket/followers","following_url":"https://api.github.com/users/hashrocket/following{/other_user}","gists_url":"https://api.github.com/users/hashrocket/gists{/gist_id}","starred_url":"https://api.github.com/users/hashrocket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashrocket/subscriptions","organizations_url":"https://api.github.com/users/hashrocket/orgs","repos_url":"https://api.github.com/users/hashrocket/repos","events_url":"https://api.github.com/users/hashrocket/events{/privacy}","received_events_url":"https://api.github.com/users/hashrocket/received_events","type":"Organization","site_admin":false},"repo":{"id":74161388,"name":"tilex","full_name":"hashrocket/tilex","owner":{"login":"hashrocket","id":5875,"avatar_url":"https://avatars.githubusercontent.com/u/5875?v=3","gravatar_id":"","url":"https://api.github.com/users/hashrocket","html_url":"https://github.com/hashrocket","followers_url":"https://api.github.com/users/hashrocket/followers","following_url":"https://api.github.com/users/hashrocket/following{/other_user}","gists_url":"https://api.github.com/users/hashrocket/gists{/gist_id}","starred_url":"https://api.github.com/users/hashrocket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashrocket/subscriptions","organizations_url":"https://api.github.com/users/hashrocket/orgs","repos_url":"https://api.github.com/users/hashrocket/repos","events_url":"https://api.github.com/users/hashrocket/events{/privacy}","received_events_url":"https://api.github.com/users/hashrocket/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hashrocket/tilex","description":"Today I Learned in Elixir","fork":false,"url":"https://api.github.com/repos/hashrocket/tilex","forks_url":"https://api.github.com/repos/hashrocket/tilex/forks","keys_url":"https://api.github.com/repos/hashrocket/tilex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hashrocket/tilex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hashrocket/tilex/teams","hooks_url":"https://api.github.com/repos/hashrocket/tilex/hooks","issue_events_url":"https://api.github.com/repos/hashrocket/tilex/issues/events{/number}","events_url":"https://api.github.com/repos/hashrocket/tilex/events","assignees_url":"https://api.github.com/repos/hashrocket/tilex/assignees{/user}","branches_url":"https://api.github.com/repos/hashrocket/tilex/branches{/branch}","tags_url":"https://api.github.com/repos/hashrocket/tilex/tags","blobs_url":"https://api.github.com/repos/hashrocket/tilex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hashrocket/tilex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hashrocket/tilex/git/refs{/sha}","trees_url":"https://api.github.com/repos/hashrocket/tilex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hashrocket/tilex/statuses/{sha}","languages_url":"https://api.github.com/repos/hashrocket/tilex/languages","stargazers_url":"https://api.github.com/repos/hashrocket/tilex/stargazers","contributors_url":"https://api.github.com/repos/hashrocket/tilex/contributors","subscribers_url":"https://api.github.com/repos/hashrocket/tilex/subscribers","subscription_url":"https://api.github.com/repos/hashrocket/tilex/subscription","commits_url":"https://api.github.com/repos/hashrocket/tilex/commits{/sha}","git_commits_url":"https://api.github.com/repos/hashrocket/tilex/git/commits{/sha}","comments_url":"https://api.github.com/repos/hashrocket/tilex/comments{/number}","issue_comment_url":"https://api.github.com/repos/hashrocket/tilex/issues/comments{/number}","contents_url":"https://api.github.com/repos/hashrocket/tilex/contents/{+path}","compare_url":"https://api.github.com/repos/hashrocket/tilex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hashrocket/tilex/merges","archive_url":"https://api.github.com/repos/hashrocket/tilex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hashrocket/tilex/downloads","issues_url":"https://api.github.com/repos/hashrocket/tilex/issues{/number}","pulls_url":"https://api.github.com/repos/hashrocket/tilex/pulls{/number}","milestones_url":"https://api.github.com/repos/hashrocket/tilex/milestones{/number}","notifications_url":"https://api.github.com/repos/hashrocket/tilex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hashrocket/tilex/labels{/name}","releases_url":"https://api.github.com/repos/hashrocket/tilex/releases{/id}","deployments_url":"https://api.github.com/repos/hashrocket/tilex/deployments","created_at":"2016-11-18T19:48:20Z","updated_at":"2016-12-28T21:50:05Z","pushed_at":"2016-12-29T21:36:24Z","git_url":"git://github.com/hashrocket/tilex.git","ssh_url":"git@github.com:hashrocket/tilex.git","clone_url":"https://github.com/hashrocket/tilex.git","svn_url":"https://github.com/hashrocket/tilex","homepage":"","size":146,"stargazers_count":3,"watchers_count":3,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":3,"default_branch":"master"}},"base":{"label":"hashrocket:master","ref":"master","sha":"3bcac219877eac764ce874e45e9d1194b8dcbee5","user":{"login":"hashrocket","id":5875,"avatar_url":"https://avatars.githubusercontent.com/u/5875?v=3","gravatar_id":"","url":"https://api.github.com/users/hashrocket","html_url":"https://github.com/hashrocket","followers_url":"https://api.github.com/users/hashrocket/followers","following_url":"https://api.github.com/users/hashrocket/following{/other_user}","gists_url":"https://api.github.com/users/hashrocket/gists{/gist_id}","starred_url":"https://api.github.com/users/hashrocket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashrocket/subscriptions","organizations_url":"https://api.github.com/users/hashrocket/orgs","repos_url":"https://api.github.com/users/hashrocket/repos","events_url":"https://api.github.com/users/hashrocket/events{/privacy}","received_events_url":"https://api.github.com/users/hashrocket/received_events","type":"Organization","site_admin":false},"repo":{"id":74161388,"name":"tilex","full_name":"hashrocket/tilex","owner":{"login":"hashrocket","id":5875,"avatar_url":"https://avatars.githubusercontent.com/u/5875?v=3","gravatar_id":"","url":"https://api.github.com/users/hashrocket","html_url":"https://github.com/hashrocket","followers_url":"https://api.github.com/users/hashrocket/followers","following_url":"https://api.github.com/users/hashrocket/following{/other_user}","gists_url":"https://api.github.com/users/hashrocket/gists{/gist_id}","starred_url":"https://api.github.com/users/hashrocket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashrocket/subscriptions","organizations_url":"https://api.github.com/users/hashrocket/orgs","repos_url":"https://api.github.com/users/hashrocket/repos","events_url":"https://api.github.com/users/hashrocket/events{/privacy}","received_events_url":"https://api.github.com/users/hashrocket/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hashrocket/tilex","description":"Today I Learned in Elixir","fork":false,"url":"https://api.github.com/repos/hashrocket/tilex","forks_url":"https://api.github.com/repos/hashrocket/tilex/forks","keys_url":"https://api.github.com/repos/hashrocket/tilex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hashrocket/tilex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hashrocket/tilex/teams","hooks_url":"https://api.github.com/repos/hashrocket/tilex/hooks","issue_events_url":"https://api.github.com/repos/hashrocket/tilex/issues/events{/number}","events_url":"https://api.github.com/repos/hashrocket/tilex/events","assignees_url":"https://api.github.com/repos/hashrocket/tilex/assignees{/user}","branches_url":"https://api.github.com/repos/hashrocket/tilex/branches{/branch}","tags_url":"https://api.github.com/repos/hashrocket/tilex/tags","blobs_url":"https://api.github.com/repos/hashrocket/tilex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hashrocket/tilex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hashrocket/tilex/git/refs{/sha}","trees_url":"https://api.github.com/repos/hashrocket/tilex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hashrocket/tilex/statuses/{sha}","languages_url":"https://api.github.com/repos/hashrocket/tilex/languages","stargazers_url":"https://api.github.com/repos/hashrocket/tilex/stargazers","contributors_url":"https://api.github.com/repos/hashrocket/tilex/contributors","subscribers_url":"https://api.github.com/repos/hashrocket/tilex/subscribers","subscription_url":"https://api.github.com/repos/hashrocket/tilex/subscription","commits_url":"https://api.github.com/repos/hashrocket/tilex/commits{/sha}","git_commits_url":"https://api.github.com/repos/hashrocket/tilex/git/commits{/sha}","comments_url":"https://api.github.com/repos/hashrocket/tilex/comments{/number}","issue_comment_url":"https://api.github.com/repos/hashrocket/tilex/issues/comments{/number}","contents_url":"https://api.github.com/repos/hashrocket/tilex/contents/{+path}","compare_url":"https://api.github.com/repos/hashrocket/tilex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hashrocket/tilex/merges","archive_url":"https://api.github.com/repos/hashrocket/tilex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hashrocket/tilex/downloads","issues_url":"https://api.github.com/repos/hashrocket/tilex/issues{/number}","pulls_url":"https://api.github.com/repos/hashrocket/tilex/pulls{/number}","milestones_url":"https://api.github.com/repos/hashrocket/tilex/milestones{/number}","notifications_url":"https://api.github.com/repos/hashrocket/tilex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hashrocket/tilex/labels{/name}","releases_url":"https://api.github.com/repos/hashrocket/tilex/releases{/id}","deployments_url":"https://api.github.com/repos/hashrocket/tilex/deployments","created_at":"2016-11-18T19:48:20Z","updated_at":"2016-12-28T21:50:05Z","pushed_at":"2016-12-29T21:36:24Z","git_url":"git://github.com/hashrocket/tilex.git","ssh_url":"git@github.com:hashrocket/tilex.git","clone_url":"https://github.com/hashrocket/tilex.git","svn_url":"https://github.com/hashrocket/tilex","homepage":"","size":146,"stargazers_count":3,"watchers_count":3,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hashrocket/tilex/pulls/13"},"html":{"href":"https://github.com/hashrocket/tilex/pull/13"},"issue":{"href":"https://api.github.com/repos/hashrocket/tilex/issues/13"},"comments":{"href":"https://api.github.com/repos/hashrocket/tilex/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/hashrocket/tilex/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/hashrocket/tilex/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hashrocket/tilex/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/hashrocket/tilex/statuses/2c1bf74f33a139c51c265c74b755102bfcab43cd"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":43,"deletions":2,"changed_files":7}}
{"actor":{"display_login":"jwworth"}}