{"action":"created","comment":{"url":"https://api.github.com/repos/hagenburger/pimd/pulls/comments/214554045","pull_request_review_id":151633819,"id":214554045,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNDU1NDA0NQ==","diff_hunk":"@@ -157,6 +157,39 @@ describe(\"Options\", () => {\n   })\n })\n \n+describe(\"Hooks\", () => {\n+  it(\"should run hooks\", () => {\n+    const input = unindent`\n+      ~~~\n+      test\n+      ~~~\n+    `\n+    let doc = new Document(input)\n+    doc.hooks.add(\"example:beforeRender\", \"add h1\", function(example) {\n+      example.dom.innerHTML = \"<h1>\"\n+    })\n+\n+    let html = doc.render()\n+    expect(html).to.have.selector(\"h1\")","path":"test/document.test.js","position":63,"original_position":17,"commit_id":"33346e790ec0f66b1926c87e8bf2392ef3a9252e","original_commit_id":"6d57854161827192d05e52dd7d4b86781fb2ff6f","user":{"login":"hagenburger","id":103399,"node_id":"MDQ6VXNlcjEwMzM5OQ==","avatar_url":"https://avatars2.githubusercontent.com/u/103399?v=4","gravatar_id":"","url":"https://api.github.com/users/hagenburger","html_url":"https://github.com/hagenburger","followers_url":"https://api.github.com/users/hagenburger/followers","following_url":"https://api.github.com/users/hagenburger/following{/other_user}","gists_url":"https://api.github.com/users/hagenburger/gists{/gist_id}","starred_url":"https://api.github.com/users/hagenburger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hagenburger/subscriptions","organizations_url":"https://api.github.com/users/hagenburger/orgs","repos_url":"https://api.github.com/users/hagenburger/repos","events_url":"https://api.github.com/users/hagenburger/events{/privacy}","received_events_url":"https://api.github.com/users/hagenburger/received_events","type":"User","site_admin":false},"body":"Right, that test example should be improved.","created_at":"2018-09-02T21:47:53Z","updated_at":"2018-09-02T21:47:53Z","html_url":"https://github.com/hagenburger/pimd/pull/48#discussion_r214554045","pull_request_url":"https://api.github.com/repos/hagenburger/pimd/pulls/48","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/hagenburger/pimd/pulls/comments/214554045"},"html":{"href":"https://github.com/hagenburger/pimd/pull/48#discussion_r214554045"},"pull_request":{"href":"https://api.github.com/repos/hagenburger/pimd/pulls/48"}},"in_reply_to_id":214552986},"pull_request":{"url":"https://api.github.com/repos/hagenburger/pimd/pulls/48","id":212610427,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyNjEwNDI3","html_url":"https://github.com/hagenburger/pimd/pull/48","diff_url":"https://github.com/hagenburger/pimd/pull/48.diff","patch_url":"https://github.com/hagenburger/pimd/pull/48.patch","issue_url":"https://api.github.com/repos/hagenburger/pimd/issues/48","number":48,"state":"open","locked":false,"title":"Hooks","user":{"login":"hagenburger","id":103399,"node_id":"MDQ6VXNlcjEwMzM5OQ==","avatar_url":"https://avatars2.githubusercontent.com/u/103399?v=4","gravatar_id":"","url":"https://api.github.com/users/hagenburger","html_url":"https://github.com/hagenburger","followers_url":"https://api.github.com/users/hagenburger/followers","following_url":"https://api.github.com/users/hagenburger/following{/other_user}","gists_url":"https://api.github.com/users/hagenburger/gists{/gist_id}","starred_url":"https://api.github.com/users/hagenburger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hagenburger/subscriptions","organizations_url":"https://api.github.com/users/hagenburger/orgs","repos_url":"https://api.github.com/users/hagenburger/repos","events_url":"https://api.github.com/users/hagenburger/events{/privacy}","received_events_url":"https://api.github.com/users/hagenburger/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-02T20:34:47Z","updated_at":"2018-09-02T21:47:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"333dceadc6d383267c70396236c4705e226abacb","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/hagenburger/pimd/pulls/48/commits","review_comments_url":"https://api.github.com/repos/hagenburger/pimd/pulls/48/comments","review_comment_url":"https://api.github.com/repos/hagenburger/pimd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hagenburger/pimd/issues/48/comments","statuses_url":"https://api.github.com/repos/hagenburger/pimd/statuses/33346e790ec0f66b1926c87e8bf2392ef3a9252e","head":{"label":"hagenburger:hooks","ref":"hooks","sha":"33346e790ec0f66b1926c87e8bf2392ef3a9252e","user":{"login":"hagenburger","id":103399,"node_id":"MDQ6VXNlcjEwMzM5OQ==","avatar_url":"https://avatars2.githubusercontent.com/u/103399?v=4","gravatar_id":"","url":"https://api.github.com/users/hagenburger","html_url":"https://github.com/hagenburger","followers_url":"https://api.github.com/users/hagenburger/followers","following_url":"https://api.github.com/users/hagenburger/following{/other_user}","gists_url":"https://api.github.com/users/hagenburger/gists{/gist_id}","starred_url":"https://api.github.com/users/hagenburger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hagenburger/subscriptions","organizations_url":"https://api.github.com/users/hagenburger/orgs","repos_url":"https://api.github.com/users/hagenburger/repos","events_url":"https://api.github.com/users/hagenburger/events{/privacy}","received_events_url":"https://api.github.com/users/hagenburger/received_events","type":"User","site_admin":false},"repo":{"id":133311302,"node_id":"MDEwOlJlcG9zaXRvcnkxMzMzMTEzMDI=","name":"pimd","full_name":"hagenburger/pimd","owner":{"login":"hagenburger","id":103399,"node_id":"MDQ6VXNlcjEwMzM5OQ==","avatar_url":"https://avatars2.githubusercontent.com/u/103399?v=4","gravatar_id":"","url":"https://api.github.com/users/hagenburger","html_url":"https://github.com/hagenburger","followers_url":"https://api.github.com/users/hagenburger/followers","following_url":"https://api.github.com/users/hagenburger/following{/other_user}","gists_url":"https://api.github.com/users/hagenburger/gists{/gist_id}","starred_url":"https://api.github.com/users/hagenburger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hagenburger/subscriptions","organizations_url":"https://api.github.com/users/hagenburger/orgs","repos_url":"https://api.github.com/users/hagenburger/repos","events_url":"https://api.github.com/users/hagenburger/events{/privacy}","received_events_url":"https://api.github.com/users/hagenburger/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hagenburger/pimd","description":"PIMD – Processing Instructions for Markdown","fork":false,"url":"https://api.github.com/repos/hagenburger/pimd","forks_url":"https://api.github.com/repos/hagenburger/pimd/forks","keys_url":"https://api.github.com/repos/hagenburger/pimd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hagenburger/pimd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hagenburger/pimd/teams","hooks_url":"https://api.github.com/repos/hagenburger/pimd/hooks","issue_events_url":"https://api.github.com/repos/hagenburger/pimd/issues/events{/number}","events_url":"https://api.github.com/repos/hagenburger/pimd/events","assignees_url":"https://api.github.com/repos/hagenburger/pimd/assignees{/user}","branches_url":"https://api.github.com/repos/hagenburger/pimd/branches{/branch}","tags_url":"https://api.github.com/repos/hagenburger/pimd/tags","blobs_url":"https://api.github.com/repos/hagenburger/pimd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hagenburger/pimd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hagenburger/pimd/git/refs{/sha}","trees_url":"https://api.github.com/repos/hagenburger/pimd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hagenburger/pimd/statuses/{sha}","languages_url":"https://api.github.com/repos/hagenburger/pimd/languages","stargazers_url":"https://api.github.com/repos/hagenburger/pimd/stargazers","contributors_url":"https://api.github.com/repos/hagenburger/pimd/contributors","subscribers_url":"https://api.github.com/repos/hagenburger/pimd/subscribers","subscription_url":"https://api.github.com/repos/hagenburger/pimd/subscription","commits_url":"https://api.github.com/repos/hagenburger/pimd/commits{/sha}","git_commits_url":"https://api.github.com/repos/hagenburger/pimd/git/commits{/sha}","comments_url":"https://api.github.com/repos/hagenburger/pimd/comments{/number}","issue_comment_url":"https://api.github.com/repos/hagenburger/pimd/issues/comments{/number}","contents_url":"https://api.github.com/repos/hagenburger/pimd/contents/{+path}","compare_url":"https://api.github.com/repos/hagenburger/pimd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hagenburger/pimd/merges","archive_url":"https://api.github.com/repos/hagenburger/pimd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hagenburger/pimd/downloads","issues_url":"https://api.github.com/repos/hagenburger/pimd/issues{/number}","pulls_url":"https://api.github.com/repos/hagenburger/pimd/pulls{/number}","milestones_url":"https://api.github.com/repos/hagenburger/pimd/milestones{/number}","notifications_url":"https://api.github.com/repos/hagenburger/pimd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hagenburger/pimd/labels{/name}","releases_url":"https://api.github.com/repos/hagenburger/pimd/releases{/id}","deployments_url":"https://api.github.com/repos/hagenburger/pimd/deployments","created_at":"2018-05-14T05:55:20Z","updated_at":"2018-09-01T10:28:01Z","pushed_at":"2018-09-02T21:46:04Z","git_url":"git://github.com/hagenburger/pimd.git","ssh_url":"git@github.com:hagenburger/pimd.git","clone_url":"https://github.com/hagenburger/pimd.git","svn_url":"https://github.com/hagenburger/pimd","homepage":"","size":1596,"stargazers_count":9,"watchers_count":9,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":24,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":3,"open_issues":24,"watchers":9,"default_branch":"master"}},"base":{"label":"hagenburger:master","ref":"master","sha":"2b30fc5ce1442686d1f9c9b5b0192c6380962d13","user":{"login":"hagenburger","id":103399,"node_id":"MDQ6VXNlcjEwMzM5OQ==","avatar_url":"https://avatars2.githubusercontent.com/u/103399?v=4","gravatar_id":"","url":"https://api.github.com/users/hagenburger","html_url":"https://github.com/hagenburger","followers_url":"https://api.github.com/users/hagenburger/followers","following_url":"https://api.github.com/users/hagenburger/following{/other_user}","gists_url":"https://api.github.com/users/hagenburger/gists{/gist_id}","starred_url":"https://api.github.com/users/hagenburger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hagenburger/subscriptions","organizations_url":"https://api.github.com/users/hagenburger/orgs","repos_url":"https://api.github.com/users/hagenburger/repos","events_url":"https://api.github.com/users/hagenburger/events{/privacy}","received_events_url":"https://api.github.com/users/hagenburger/received_events","type":"User","site_admin":false},"repo":{"id":133311302,"node_id":"MDEwOlJlcG9zaXRvcnkxMzMzMTEzMDI=","name":"pimd","full_name":"hagenburger/pimd","owner":{"login":"hagenburger","id":103399,"node_id":"MDQ6VXNlcjEwMzM5OQ==","avatar_url":"https://avatars2.githubusercontent.com/u/103399?v=4","gravatar_id":"","url":"https://api.github.com/users/hagenburger","html_url":"https://github.com/hagenburger","followers_url":"https://api.github.com/users/hagenburger/followers","following_url":"https://api.github.com/users/hagenburger/following{/other_user}","gists_url":"https://api.github.com/users/hagenburger/gists{/gist_id}","starred_url":"https://api.github.com/users/hagenburger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hagenburger/subscriptions","organizations_url":"https://api.github.com/users/hagenburger/orgs","repos_url":"https://api.github.com/users/hagenburger/repos","events_url":"https://api.github.com/users/hagenburger/events{/privacy}","received_events_url":"https://api.github.com/users/hagenburger/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hagenburger/pimd","description":"PIMD – Processing Instructions for Markdown","fork":false,"url":"https://api.github.com/repos/hagenburger/pimd","forks_url":"https://api.github.com/repos/hagenburger/pimd/forks","keys_url":"https://api.github.com/repos/hagenburger/pimd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hagenburger/pimd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hagenburger/pimd/teams","hooks_url":"https://api.github.com/repos/hagenburger/pimd/hooks","issue_events_url":"https://api.github.com/repos/hagenburger/pimd/issues/events{/number}","events_url":"https://api.github.com/repos/hagenburger/pimd/events","assignees_url":"https://api.github.com/repos/hagenburger/pimd/assignees{/user}","branches_url":"https://api.github.com/repos/hagenburger/pimd/branches{/branch}","tags_url":"https://api.github.com/repos/hagenburger/pimd/tags","blobs_url":"https://api.github.com/repos/hagenburger/pimd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hagenburger/pimd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hagenburger/pimd/git/refs{/sha}","trees_url":"https://api.github.com/repos/hagenburger/pimd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hagenburger/pimd/statuses/{sha}","languages_url":"https://api.github.com/repos/hagenburger/pimd/languages","stargazers_url":"https://api.github.com/repos/hagenburger/pimd/stargazers","contributors_url":"https://api.github.com/repos/hagenburger/pimd/contributors","subscribers_url":"https://api.github.com/repos/hagenburger/pimd/subscribers","subscription_url":"https://api.github.com/repos/hagenburger/pimd/subscription","commits_url":"https://api.github.com/repos/hagenburger/pimd/commits{/sha}","git_commits_url":"https://api.github.com/repos/hagenburger/pimd/git/commits{/sha}","comments_url":"https://api.github.com/repos/hagenburger/pimd/comments{/number}","issue_comment_url":"https://api.github.com/repos/hagenburger/pimd/issues/comments{/number}","contents_url":"https://api.github.com/repos/hagenburger/pimd/contents/{+path}","compare_url":"https://api.github.com/repos/hagenburger/pimd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hagenburger/pimd/merges","archive_url":"https://api.github.com/repos/hagenburger/pimd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hagenburger/pimd/downloads","issues_url":"https://api.github.com/repos/hagenburger/pimd/issues{/number}","pulls_url":"https://api.github.com/repos/hagenburger/pimd/pulls{/number}","milestones_url":"https://api.github.com/repos/hagenburger/pimd/milestones{/number}","notifications_url":"https://api.github.com/repos/hagenburger/pimd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hagenburger/pimd/labels{/name}","releases_url":"https://api.github.com/repos/hagenburger/pimd/releases{/id}","deployments_url":"https://api.github.com/repos/hagenburger/pimd/deployments","created_at":"2018-05-14T05:55:20Z","updated_at":"2018-09-01T10:28:01Z","pushed_at":"2018-09-02T21:46:04Z","git_url":"git://github.com/hagenburger/pimd.git","ssh_url":"git@github.com:hagenburger/pimd.git","clone_url":"https://github.com/hagenburger/pimd.git","svn_url":"https://github.com/hagenburger/pimd","homepage":"","size":1596,"stargazers_count":9,"watchers_count":9,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":24,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":3,"open_issues":24,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hagenburger/pimd/pulls/48"},"html":{"href":"https://github.com/hagenburger/pimd/pull/48"},"issue":{"href":"https://api.github.com/repos/hagenburger/pimd/issues/48"},"comments":{"href":"https://api.github.com/repos/hagenburger/pimd/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/hagenburger/pimd/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/hagenburger/pimd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hagenburger/pimd/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/hagenburger/pimd/statuses/33346e790ec0f66b1926c87e8bf2392ef3a9252e"}},"author_association":"OWNER"}}
{"actor":{"display_login":"hagenburger"}}