{"action":"closed","number":152,"pull_request":{"url":"https://api.github.com/repos/markdown-it/markdown-it/pulls/152","id":43131547,"html_url":"https://github.com/markdown-it/markdown-it/pull/152","diff_url":"https://github.com/markdown-it/markdown-it/pull/152.diff","patch_url":"https://github.com/markdown-it/markdown-it/pull/152.patch","issue_url":"https://api.github.com/repos/markdown-it/markdown-it/issues/152","number":152,"state":"closed","locked":false,"title":"Added a layer of abstraction so tokens can be directly gotten","user":{"login":"funkjunky","id":507134,"avatar_url":"https://avatars.githubusercontent.com/u/507134?v=3","gravatar_id":"","url":"https://api.github.com/users/funkjunky","html_url":"https://github.com/funkjunky","followers_url":"https://api.github.com/users/funkjunky/followers","following_url":"https://api.github.com/users/funkjunky/following{/other_user}","gists_url":"https://api.github.com/users/funkjunky/gists{/gist_id}","starred_url":"https://api.github.com/users/funkjunky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/funkjunky/subscriptions","organizations_url":"https://api.github.com/users/funkjunky/orgs","repos_url":"https://api.github.com/users/funkjunky/repos","events_url":"https://api.github.com/users/funkjunky/events{/privacy}","received_events_url":"https://api.github.com/users/funkjunky/received_events","type":"User","site_admin":false},"body":"This was so I could write a plugin that could render React components.\r\n\r\nUpsides: Cleaner code (map/reduce), any other rendering engine that could use objects could take advantage of the abstraction.\r\n\r\nDownside: an additional array creation well use up n memory and cause n allocations where n is the number of tokens generated by the parser.\r\n\r\nUnfortunately, I can't seem to run the benchmark, because an autolinker module can't be found.","created_at":"2015-08-24T00:02:24Z","updated_at":"2015-08-24T00:17:14Z","closed_at":"2015-08-24T00:17:14Z","merged_at":null,"merge_commit_sha":"e75ceea9504206bdc8906d7b3ab536459e47dd4f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/markdown-it/markdown-it/pulls/152/commits","review_comments_url":"https://api.github.com/repos/markdown-it/markdown-it/pulls/152/comments","review_comment_url":"https://api.github.com/repos/markdown-it/markdown-it/pulls/comments{/number}","comments_url":"https://api.github.com/repos/markdown-it/markdown-it/issues/152/comments","statuses_url":"https://api.github.com/repos/markdown-it/markdown-it/statuses/0937ab3d743c200bf67a30dcafbcc821d3b4d132","head":{"label":"funkjunky:master","ref":"master","sha":"0937ab3d743c200bf67a30dcafbcc821d3b4d132","user":{"login":"funkjunky","id":507134,"avatar_url":"https://avatars.githubusercontent.com/u/507134?v=3","gravatar_id":"","url":"https://api.github.com/users/funkjunky","html_url":"https://github.com/funkjunky","followers_url":"https://api.github.com/users/funkjunky/followers","following_url":"https://api.github.com/users/funkjunky/following{/other_user}","gists_url":"https://api.github.com/users/funkjunky/gists{/gist_id}","starred_url":"https://api.github.com/users/funkjunky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/funkjunky/subscriptions","organizations_url":"https://api.github.com/users/funkjunky/orgs","repos_url":"https://api.github.com/users/funkjunky/repos","events_url":"https://api.github.com/users/funkjunky/events{/privacy}","received_events_url":"https://api.github.com/users/funkjunky/received_events","type":"User","site_admin":false},"repo":{"id":41227164,"name":"markdown-it","full_name":"funkjunky/markdown-it","owner":{"login":"funkjunky","id":507134,"avatar_url":"https://avatars.githubusercontent.com/u/507134?v=3","gravatar_id":"","url":"https://api.github.com/users/funkjunky","html_url":"https://github.com/funkjunky","followers_url":"https://api.github.com/users/funkjunky/followers","following_url":"https://api.github.com/users/funkjunky/following{/other_user}","gists_url":"https://api.github.com/users/funkjunky/gists{/gist_id}","starred_url":"https://api.github.com/users/funkjunky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/funkjunky/subscriptions","organizations_url":"https://api.github.com/users/funkjunky/orgs","repos_url":"https://api.github.com/users/funkjunky/repos","events_url":"https://api.github.com/users/funkjunky/events{/privacy}","received_events_url":"https://api.github.com/users/funkjunky/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/funkjunky/markdown-it","description":"Markdown parser, done right. 100% CommonMark support, extensions, syntax plugins & high speed","fork":true,"url":"https://api.github.com/repos/funkjunky/markdown-it","forks_url":"https://api.github.com/repos/funkjunky/markdown-it/forks","keys_url":"https://api.github.com/repos/funkjunky/markdown-it/keys{/key_id}","collaborators_url":"https://api.github.com/repos/funkjunky/markdown-it/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/funkjunky/markdown-it/teams","hooks_url":"https://api.github.com/repos/funkjunky/markdown-it/hooks","issue_events_url":"https://api.github.com/repos/funkjunky/markdown-it/issues/events{/number}","events_url":"https://api.github.com/repos/funkjunky/markdown-it/events","assignees_url":"https://api.github.com/repos/funkjunky/markdown-it/assignees{/user}","branches_url":"https://api.github.com/repos/funkjunky/markdown-it/branches{/branch}","tags_url":"https://api.github.com/repos/funkjunky/markdown-it/tags","blobs_url":"https://api.github.com/repos/funkjunky/markdown-it/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/funkjunky/markdown-it/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/funkjunky/markdown-it/git/refs{/sha}","trees_url":"https://api.github.com/repos/funkjunky/markdown-it/git/trees{/sha}","statuses_url":"https://api.github.com/repos/funkjunky/markdown-it/statuses/{sha}","languages_url":"https://api.github.com/repos/funkjunky/markdown-it/languages","stargazers_url":"https://api.github.com/repos/funkjunky/markdown-it/stargazers","contributors_url":"https://api.github.com/repos/funkjunky/markdown-it/contributors","subscribers_url":"https://api.github.com/repos/funkjunky/markdown-it/subscribers","subscription_url":"https://api.github.com/repos/funkjunky/markdown-it/subscription","commits_url":"https://api.github.com/repos/funkjunky/markdown-it/commits{/sha}","git_commits_url":"https://api.github.com/repos/funkjunky/markdown-it/git/commits{/sha}","comments_url":"https://api.github.com/repos/funkjunky/markdown-it/comments{/number}","issue_comment_url":"https://api.github.com/repos/funkjunky/markdown-it/issues/comments{/number}","contents_url":"https://api.github.com/repos/funkjunky/markdown-it/contents/{+path}","compare_url":"https://api.github.com/repos/funkjunky/markdown-it/compare/{base}...{head}","merges_url":"https://api.github.com/repos/funkjunky/markdown-it/merges","archive_url":"https://api.github.com/repos/funkjunky/markdown-it/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/funkjunky/markdown-it/downloads","issues_url":"https://api.github.com/repos/funkjunky/markdown-it/issues{/number}","pulls_url":"https://api.github.com/repos/funkjunky/markdown-it/pulls{/number}","milestones_url":"https://api.github.com/repos/funkjunky/markdown-it/milestones{/number}","notifications_url":"https://api.github.com/repos/funkjunky/markdown-it/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/funkjunky/markdown-it/labels{/name}","releases_url":"https://api.github.com/repos/funkjunky/markdown-it/releases{/id}","created_at":"2015-08-22T22:47:49Z","updated_at":"2015-08-22T22:47:50Z","pushed_at":"2015-08-23T23:59:58Z","git_url":"git://github.com/funkjunky/markdown-it.git","ssh_url":"git@github.com:funkjunky/markdown-it.git","clone_url":"https://github.com/funkjunky/markdown-it.git","svn_url":"https://github.com/funkjunky/markdown-it","homepage":"https://markdown-it.github.io","size":3133,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"markdown-it:master","ref":"master","sha":"255d62d39122694872ddce840e2141379ac3deca","user":{"login":"markdown-it","id":10248321,"avatar_url":"https://avatars.githubusercontent.com/u/10248321?v=3","gravatar_id":"","url":"https://api.github.com/users/markdown-it","html_url":"https://github.com/markdown-it","followers_url":"https://api.github.com/users/markdown-it/followers","following_url":"https://api.github.com/users/markdown-it/following{/other_user}","gists_url":"https://api.github.com/users/markdown-it/gists{/gist_id}","starred_url":"https://api.github.com/users/markdown-it/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markdown-it/subscriptions","organizations_url":"https://api.github.com/users/markdown-it/orgs","repos_url":"https://api.github.com/users/markdown-it/repos","events_url":"https://api.github.com/users/markdown-it/events{/privacy}","received_events_url":"https://api.github.com/users/markdown-it/received_events","type":"Organization","site_admin":false},"repo":{"id":28249537,"name":"markdown-it","full_name":"markdown-it/markdown-it","owner":{"login":"markdown-it","id":10248321,"avatar_url":"https://avatars.githubusercontent.com/u/10248321?v=3","gravatar_id":"","url":"https://api.github.com/users/markdown-it","html_url":"https://github.com/markdown-it","followers_url":"https://api.github.com/users/markdown-it/followers","following_url":"https://api.github.com/users/markdown-it/following{/other_user}","gists_url":"https://api.github.com/users/markdown-it/gists{/gist_id}","starred_url":"https://api.github.com/users/markdown-it/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markdown-it/subscriptions","organizations_url":"https://api.github.com/users/markdown-it/orgs","repos_url":"https://api.github.com/users/markdown-it/repos","events_url":"https://api.github.com/users/markdown-it/events{/privacy}","received_events_url":"https://api.github.com/users/markdown-it/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/markdown-it/markdown-it","description":"Markdown parser, done right. 100% CommonMark support, extensions, syntax plugins & high speed","fork":false,"url":"https://api.github.com/repos/markdown-it/markdown-it","forks_url":"https://api.github.com/repos/markdown-it/markdown-it/forks","keys_url":"https://api.github.com/repos/markdown-it/markdown-it/keys{/key_id}","collaborators_url":"https://api.github.com/repos/markdown-it/markdown-it/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/markdown-it/markdown-it/teams","hooks_url":"https://api.github.com/repos/markdown-it/markdown-it/hooks","issue_events_url":"https://api.github.com/repos/markdown-it/markdown-it/issues/events{/number}","events_url":"https://api.github.com/repos/markdown-it/markdown-it/events","assignees_url":"https://api.github.com/repos/markdown-it/markdown-it/assignees{/user}","branches_url":"https://api.github.com/repos/markdown-it/markdown-it/branches{/branch}","tags_url":"https://api.github.com/repos/markdown-it/markdown-it/tags","blobs_url":"https://api.github.com/repos/markdown-it/markdown-it/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/markdown-it/markdown-it/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/markdown-it/markdown-it/git/refs{/sha}","trees_url":"https://api.github.com/repos/markdown-it/markdown-it/git/trees{/sha}","statuses_url":"https://api.github.com/repos/markdown-it/markdown-it/statuses/{sha}","languages_url":"https://api.github.com/repos/markdown-it/markdown-it/languages","stargazers_url":"https://api.github.com/repos/markdown-it/markdown-it/stargazers","contributors_url":"https://api.github.com/repos/markdown-it/markdown-it/contributors","subscribers_url":"https://api.github.com/repos/markdown-it/markdown-it/subscribers","subscription_url":"https://api.github.com/repos/markdown-it/markdown-it/subscription","commits_url":"https://api.github.com/repos/markdown-it/markdown-it/commits{/sha}","git_commits_url":"https://api.github.com/repos/markdown-it/markdown-it/git/commits{/sha}","comments_url":"https://api.github.com/repos/markdown-it/markdown-it/comments{/number}","issue_comment_url":"https://api.github.com/repos/markdown-it/markdown-it/issues/comments{/number}","contents_url":"https://api.github.com/repos/markdown-it/markdown-it/contents/{+path}","compare_url":"https://api.github.com/repos/markdown-it/markdown-it/compare/{base}...{head}","merges_url":"https://api.github.com/repos/markdown-it/markdown-it/merges","archive_url":"https://api.github.com/repos/markdown-it/markdown-it/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/markdown-it/markdown-it/downloads","issues_url":"https://api.github.com/repos/markdown-it/markdown-it/issues{/number}","pulls_url":"https://api.github.com/repos/markdown-it/markdown-it/pulls{/number}","milestones_url":"https://api.github.com/repos/markdown-it/markdown-it/milestones{/number}","notifications_url":"https://api.github.com/repos/markdown-it/markdown-it/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/markdown-it/markdown-it/labels{/name}","releases_url":"https://api.github.com/repos/markdown-it/markdown-it/releases{/id}","created_at":"2014-12-19T22:54:53Z","updated_at":"2015-08-23T17:31:47Z","pushed_at":"2015-08-24T00:02:25Z","git_url":"git://github.com/markdown-it/markdown-it.git","ssh_url":"git@github.com:markdown-it/markdown-it.git","clone_url":"https://github.com/markdown-it/markdown-it.git","svn_url":"https://github.com/markdown-it/markdown-it","homepage":"https://markdown-it.github.io","size":3133,"stargazers_count":853,"watchers_count":853,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":61,"mirror_url":null,"open_issues_count":4,"forks":61,"open_issues":4,"watchers":853,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/markdown-it/markdown-it/pulls/152"},"html":{"href":"https://github.com/markdown-it/markdown-it/pull/152"},"issue":{"href":"https://api.github.com/repos/markdown-it/markdown-it/issues/152"},"comments":{"href":"https://api.github.com/repos/markdown-it/markdown-it/issues/152/comments"},"review_comments":{"href":"https://api.github.com/repos/markdown-it/markdown-it/pulls/152/comments"},"review_comment":{"href":"https://api.github.com/repos/markdown-it/markdown-it/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/markdown-it/markdown-it/pulls/152/commits"},"statuses":{"href":"https://api.github.com/repos/markdown-it/markdown-it/statuses/0937ab3d743c200bf67a30dcafbcc821d3b4d132"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":1,"review_comments":0,"commits":5,"additions":57,"deletions":23,"changed_files":3}}