{"action":"created","comment":{"url":"https://api.github.com/repos/nteract/transformime-commonmark/pulls/comments/36034442","id":36034442,"diff_hunk":"@@ -0,0 +1,25 @@\n+\"use strict\";\n+\n+var commonmark = require(\"commonmark\");\n+\n+function markdownTransform(mimetype, data, document) {\n+    var div = document.createElement(\"div\");\n+\n+    let reader = new commonmark.Parser();\n+    let writer = new commonmark.HtmlRenderer({\n+        safe: true\n+    });","path":"src/commonmark.transformer.js","position":11,"original_position":11,"commit_id":"4581598d437764696b30cbe31326d80e99730955","original_commit_id":"4581598d437764696b30cbe31326d80e99730955","user":{"login":"rgbkrk","id":836375,"avatar_url":"https://avatars.githubusercontent.com/u/836375?v=3","gravatar_id":"","url":"https://api.github.com/users/rgbkrk","html_url":"https://github.com/rgbkrk","followers_url":"https://api.github.com/users/rgbkrk/followers","following_url":"https://api.github.com/users/rgbkrk/following{/other_user}","gists_url":"https://api.github.com/users/rgbkrk/gists{/gist_id}","starred_url":"https://api.github.com/users/rgbkrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgbkrk/subscriptions","organizations_url":"https://api.github.com/users/rgbkrk/orgs","repos_url":"https://api.github.com/users/rgbkrk/repos","events_url":"https://api.github.com/users/rgbkrk/events{/privacy}","received_events_url":"https://api.github.com/users/rgbkrk/received_events","type":"User","site_admin":false},"body":"I'm tempted to wrap this in a closure so it's not creating the reader and writer everytime...","created_at":"2015-08-01T15:30:04Z","updated_at":"2015-08-01T15:30:04Z","html_url":"https://github.com/nteract/transformime-commonmark/pull/2#discussion_r36034442","pull_request_url":"https://api.github.com/repos/nteract/transformime-commonmark/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/nteract/transformime-commonmark/pulls/comments/36034442"},"html":{"href":"https://github.com/nteract/transformime-commonmark/pull/2#discussion_r36034442"},"pull_request":{"href":"https://api.github.com/repos/nteract/transformime-commonmark/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/nteract/transformime-commonmark/pulls/2","id":41402581,"html_url":"https://github.com/nteract/transformime-commonmark/pull/2","diff_url":"https://github.com/nteract/transformime-commonmark/pull/2.diff","patch_url":"https://github.com/nteract/transformime-commonmark/pull/2.patch","issue_url":"https://api.github.com/repos/nteract/transformime-commonmark/issues/2","number":2,"state":"open","locked":false,"title":"TF 2.0","user":{"login":"rgbkrk","id":836375,"avatar_url":"https://avatars.githubusercontent.com/u/836375?v=3","gravatar_id":"","url":"https://api.github.com/users/rgbkrk","html_url":"https://github.com/rgbkrk","followers_url":"https://api.github.com/users/rgbkrk/followers","following_url":"https://api.github.com/users/rgbkrk/following{/other_user}","gists_url":"https://api.github.com/users/rgbkrk/gists{/gist_id}","starred_url":"https://api.github.com/users/rgbkrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgbkrk/subscriptions","organizations_url":"https://api.github.com/users/rgbkrk/orgs","repos_url":"https://api.github.com/users/rgbkrk/repos","events_url":"https://api.github.com/users/rgbkrk/events{/privacy}","received_events_url":"https://api.github.com/users/rgbkrk/received_events","type":"User","site_admin":false},"body":"It should probably be commonMarkTransform by now, but I digress.\r\n\r\nI'll be adding some tests here as well.","created_at":"2015-08-01T14:41:47Z","updated_at":"2015-08-01T15:30:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"125ec7847e602947776bf959016e514bff0aff42","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nteract/transformime-commonmark/pulls/2/commits","review_comments_url":"https://api.github.com/repos/nteract/transformime-commonmark/pulls/2/comments","review_comment_url":"https://api.github.com/repos/nteract/transformime-commonmark/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nteract/transformime-commonmark/issues/2/comments","statuses_url":"https://api.github.com/repos/nteract/transformime-commonmark/statuses/4581598d437764696b30cbe31326d80e99730955","head":{"label":"nteract:TF2.0","ref":"TF2.0","sha":"4581598d437764696b30cbe31326d80e99730955","user":{"login":"nteract","id":12401040,"avatar_url":"https://avatars.githubusercontent.com/u/12401040?v=3","gravatar_id":"","url":"https://api.github.com/users/nteract","html_url":"https://github.com/nteract","followers_url":"https://api.github.com/users/nteract/followers","following_url":"https://api.github.com/users/nteract/following{/other_user}","gists_url":"https://api.github.com/users/nteract/gists{/gist_id}","starred_url":"https://api.github.com/users/nteract/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nteract/subscriptions","organizations_url":"https://api.github.com/users/nteract/orgs","repos_url":"https://api.github.com/users/nteract/repos","events_url":"https://api.github.com/users/nteract/events{/privacy}","received_events_url":"https://api.github.com/users/nteract/received_events","type":"Organization","site_admin":false},"repo":{"id":39580060,"name":"transformime-commonmark","full_name":"nteract/transformime-commonmark","owner":{"login":"nteract","id":12401040,"avatar_url":"https://avatars.githubusercontent.com/u/12401040?v=3","gravatar_id":"","url":"https://api.github.com/users/nteract","html_url":"https://github.com/nteract","followers_url":"https://api.github.com/users/nteract/followers","following_url":"https://api.github.com/users/nteract/following{/other_user}","gists_url":"https://api.github.com/users/nteract/gists{/gist_id}","starred_url":"https://api.github.com/users/nteract/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nteract/subscriptions","organizations_url":"https://api.github.com/users/nteract/orgs","repos_url":"https://api.github.com/users/nteract/repos","events_url":"https://api.github.com/users/nteract/events{/privacy}","received_events_url":"https://api.github.com/users/nteract/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nteract/transformime-commonmark","description":"Transformer using commonmark.js","fork":false,"url":"https://api.github.com/repos/nteract/transformime-commonmark","forks_url":"https://api.github.com/repos/nteract/transformime-commonmark/forks","keys_url":"https://api.github.com/repos/nteract/transformime-commonmark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nteract/transformime-commonmark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nteract/transformime-commonmark/teams","hooks_url":"https://api.github.com/repos/nteract/transformime-commonmark/hooks","issue_events_url":"https://api.github.com/repos/nteract/transformime-commonmark/issues/events{/number}","events_url":"https://api.github.com/repos/nteract/transformime-commonmark/events","assignees_url":"https://api.github.com/repos/nteract/transformime-commonmark/assignees{/user}","branches_url":"https://api.github.com/repos/nteract/transformime-commonmark/branches{/branch}","tags_url":"https://api.github.com/repos/nteract/transformime-commonmark/tags","blobs_url":"https://api.github.com/repos/nteract/transformime-commonmark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nteract/transformime-commonmark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nteract/transformime-commonmark/git/refs{/sha}","trees_url":"https://api.github.com/repos/nteract/transformime-commonmark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nteract/transformime-commonmark/statuses/{sha}","languages_url":"https://api.github.com/repos/nteract/transformime-commonmark/languages","stargazers_url":"https://api.github.com/repos/nteract/transformime-commonmark/stargazers","contributors_url":"https://api.github.com/repos/nteract/transformime-commonmark/contributors","subscribers_url":"https://api.github.com/repos/nteract/transformime-commonmark/subscribers","subscription_url":"https://api.github.com/repos/nteract/transformime-commonmark/subscription","commits_url":"https://api.github.com/repos/nteract/transformime-commonmark/commits{/sha}","git_commits_url":"https://api.github.com/repos/nteract/transformime-commonmark/git/commits{/sha}","comments_url":"https://api.github.com/repos/nteract/transformime-commonmark/comments{/number}","issue_comment_url":"https://api.github.com/repos/nteract/transformime-commonmark/issues/comments{/number}","contents_url":"https://api.github.com/repos/nteract/transformime-commonmark/contents/{+path}","compare_url":"https://api.github.com/repos/nteract/transformime-commonmark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nteract/transformime-commonmark/merges","archive_url":"https://api.github.com/repos/nteract/transformime-commonmark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nteract/transformime-commonmark/downloads","issues_url":"https://api.github.com/repos/nteract/transformime-commonmark/issues{/number}","pulls_url":"https://api.github.com/repos/nteract/transformime-commonmark/pulls{/number}","milestones_url":"https://api.github.com/repos/nteract/transformime-commonmark/milestones{/number}","notifications_url":"https://api.github.com/repos/nteract/transformime-commonmark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nteract/transformime-commonmark/labels{/name}","releases_url":"https://api.github.com/repos/nteract/transformime-commonmark/releases{/id}","created_at":"2015-07-23T17:02:38Z","updated_at":"2015-07-26T15:19:15Z","pushed_at":"2015-08-01T15:29:11Z","git_url":"git://github.com/nteract/transformime-commonmark.git","ssh_url":"git@github.com:nteract/transformime-commonmark.git","clone_url":"https://github.com/nteract/transformime-commonmark.git","svn_url":"https://github.com/nteract/transformime-commonmark","homepage":null,"size":144,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"nteract:master","ref":"master","sha":"700b5e6d601a8d150c93aef3862ca1bb11e5498e","user":{"login":"nteract","id":12401040,"avatar_url":"https://avatars.githubusercontent.com/u/12401040?v=3","gravatar_id":"","url":"https://api.github.com/users/nteract","html_url":"https://github.com/nteract","followers_url":"https://api.github.com/users/nteract/followers","following_url":"https://api.github.com/users/nteract/following{/other_user}","gists_url":"https://api.github.com/users/nteract/gists{/gist_id}","starred_url":"https://api.github.com/users/nteract/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nteract/subscriptions","organizations_url":"https://api.github.com/users/nteract/orgs","repos_url":"https://api.github.com/users/nteract/repos","events_url":"https://api.github.com/users/nteract/events{/privacy}","received_events_url":"https://api.github.com/users/nteract/received_events","type":"Organization","site_admin":false},"repo":{"id":39580060,"name":"transformime-commonmark","full_name":"nteract/transformime-commonmark","owner":{"login":"nteract","id":12401040,"avatar_url":"https://avatars.githubusercontent.com/u/12401040?v=3","gravatar_id":"","url":"https://api.github.com/users/nteract","html_url":"https://github.com/nteract","followers_url":"https://api.github.com/users/nteract/followers","following_url":"https://api.github.com/users/nteract/following{/other_user}","gists_url":"https://api.github.com/users/nteract/gists{/gist_id}","starred_url":"https://api.github.com/users/nteract/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nteract/subscriptions","organizations_url":"https://api.github.com/users/nteract/orgs","repos_url":"https://api.github.com/users/nteract/repos","events_url":"https://api.github.com/users/nteract/events{/privacy}","received_events_url":"https://api.github.com/users/nteract/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nteract/transformime-commonmark","description":"Transformer using commonmark.js","fork":false,"url":"https://api.github.com/repos/nteract/transformime-commonmark","forks_url":"https://api.github.com/repos/nteract/transformime-commonmark/forks","keys_url":"https://api.github.com/repos/nteract/transformime-commonmark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nteract/transformime-commonmark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nteract/transformime-commonmark/teams","hooks_url":"https://api.github.com/repos/nteract/transformime-commonmark/hooks","issue_events_url":"https://api.github.com/repos/nteract/transformime-commonmark/issues/events{/number}","events_url":"https://api.github.com/repos/nteract/transformime-commonmark/events","assignees_url":"https://api.github.com/repos/nteract/transformime-commonmark/assignees{/user}","branches_url":"https://api.github.com/repos/nteract/transformime-commonmark/branches{/branch}","tags_url":"https://api.github.com/repos/nteract/transformime-commonmark/tags","blobs_url":"https://api.github.com/repos/nteract/transformime-commonmark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nteract/transformime-commonmark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nteract/transformime-commonmark/git/refs{/sha}","trees_url":"https://api.github.com/repos/nteract/transformime-commonmark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nteract/transformime-commonmark/statuses/{sha}","languages_url":"https://api.github.com/repos/nteract/transformime-commonmark/languages","stargazers_url":"https://api.github.com/repos/nteract/transformime-commonmark/stargazers","contributors_url":"https://api.github.com/repos/nteract/transformime-commonmark/contributors","subscribers_url":"https://api.github.com/repos/nteract/transformime-commonmark/subscribers","subscription_url":"https://api.github.com/repos/nteract/transformime-commonmark/subscription","commits_url":"https://api.github.com/repos/nteract/transformime-commonmark/commits{/sha}","git_commits_url":"https://api.github.com/repos/nteract/transformime-commonmark/git/commits{/sha}","comments_url":"https://api.github.com/repos/nteract/transformime-commonmark/comments{/number}","issue_comment_url":"https://api.github.com/repos/nteract/transformime-commonmark/issues/comments{/number}","contents_url":"https://api.github.com/repos/nteract/transformime-commonmark/contents/{+path}","compare_url":"https://api.github.com/repos/nteract/transformime-commonmark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nteract/transformime-commonmark/merges","archive_url":"https://api.github.com/repos/nteract/transformime-commonmark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nteract/transformime-commonmark/downloads","issues_url":"https://api.github.com/repos/nteract/transformime-commonmark/issues{/number}","pulls_url":"https://api.github.com/repos/nteract/transformime-commonmark/pulls{/number}","milestones_url":"https://api.github.com/repos/nteract/transformime-commonmark/milestones{/number}","notifications_url":"https://api.github.com/repos/nteract/transformime-commonmark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nteract/transformime-commonmark/labels{/name}","releases_url":"https://api.github.com/repos/nteract/transformime-commonmark/releases{/id}","created_at":"2015-07-23T17:02:38Z","updated_at":"2015-07-26T15:19:15Z","pushed_at":"2015-08-01T15:29:11Z","git_url":"git://github.com/nteract/transformime-commonmark.git","ssh_url":"git@github.com:nteract/transformime-commonmark.git","clone_url":"https://github.com/nteract/transformime-commonmark.git","svn_url":"https://github.com/nteract/transformime-commonmark","homepage":null,"size":144,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nteract/transformime-commonmark/pulls/2"},"html":{"href":"https://github.com/nteract/transformime-commonmark/pull/2"},"issue":{"href":"https://api.github.com/repos/nteract/transformime-commonmark/issues/2"},"comments":{"href":"https://api.github.com/repos/nteract/transformime-commonmark/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/nteract/transformime-commonmark/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/nteract/transformime-commonmark/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nteract/transformime-commonmark/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/nteract/transformime-commonmark/statuses/4581598d437764696b30cbe31326d80e99730955"}}}}