GitHub PullRequestReviewCommentEvent at 2014-10-19 11:21:45
Repository: Tanka.Markdown
Actor: pekkah
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/pekkah/Tanka.Markdown/pulls/comments/19059580","id":19059580,"diff_hunk":"@@ -0,0 +1,36 @@\n+﻿using System;\n+using System.Text.RegularExpressions;\n+using CSharpVerbalExpressions;\n+\n+namespace Tanka.Markdown.Blocks\n+{\n+    public class BlockQuoteBlockBuilder : IBlockBuilder\n+    {\n+        private readonly Regex _expression;\n+\n+        public BlockQuoteBlockBuilder()\n+        {\n+            _expression = VerbalExpressions.DefaultExpression\n+                .Add(@\"\\G\", false)\n+                .StartOfLine()\n+                .Any(\">\")\n+                .Anything()\n+                .EndOfLine()\n+                .ToRegex();\n+        }\n+        public bool CanBuild(int start, StringRange content)\n+        {\n+            var isMatch = _expression.IsMatch(content.Document, start);\n+            return isMatch;\n+        }\n+\n+        public Block Build(int start, StringRange content, out int end)\n+        {\n+            end = content.EndOfLine(start);","path":"src/Markdown/Blocks/BlockQuoteBlockBuilder.cs","position":29,"original_position":29,"commit_id":"e9006e3105aefdbfe6df628bcce689ba69d4de0f","original_commit_id":"e9006e3105aefdbfe6df628bcce689ba69d4de0f","user":{"login":"pekkah","id":822416,"avatar_url":"https://avatars.githubusercontent.com/u/822416?v=2","gravatar_id":"","url":"https://api.github.com/users/pekkah","html_url":"https://github.com/pekkah","followers_url":"https://api.github.com/users/pekkah/followers","following_url":"https://api.github.com/users/pekkah/following{/other_user}","gists_url":"https://api.github.com/users/pekkah/gists{/gist_id}","starred_url":"https://api.github.com/users/pekkah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pekkah/subscriptions","organizations_url":"https://api.github.com/users/pekkah/orgs","repos_url":"https://api.github.com/users/pekkah/repos","events_url":"https://api.github.com/users/pekkah/events{/privacy}","received_events_url":"https://api.github.com/users/pekkah/received_events","type":"User","site_admin":false},"body":"What about multiline blockquotes? \r\n\r\nAccording to http://jgm.github.io/stmd/spec.html#block-quotes blockquotes can continue for multiple lines.","created_at":"2014-10-19T11:21:45Z","updated_at":"2014-10-19T11:21:45Z","html_url":"https://github.com/pekkah/Tanka.Markdown/pull/12#discussion_r19059580","pull_request_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/pekkah/Tanka.Markdown/pulls/comments/19059580"},"html":{"href":"https://github.com/pekkah/Tanka.Markdown/pull/12#discussion_r19059580"},"pull_request":{"href":"https://api.github.com/repos/pekkah/Tanka.Markdown/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/pekkah/Tanka.Markdown/pulls/12","id":22437238,"html_url":"https://github.com/pekkah/Tanka.Markdown/pull/12","diff_url":"https://github.com/pekkah/Tanka.Markdown/pull/12.diff","patch_url":"https://github.com/pekkah/Tanka.Markdown/pull/12.patch","issue_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/issues/12","number":12,"state":"open","locked":false,"title":"Added BlockQuote support.","user":{"login":"cwilliamson1980","id":1222350,"avatar_url":"https://avatars.githubusercontent.com/u/1222350?v=2","gravatar_id":"","url":"https://api.github.com/users/cwilliamson1980","html_url":"https://github.com/cwilliamson1980","followers_url":"https://api.github.com/users/cwilliamson1980/followers","following_url":"https://api.github.com/users/cwilliamson1980/following{/other_user}","gists_url":"https://api.github.com/users/cwilliamson1980/gists{/gist_id}","starred_url":"https://api.github.com/users/cwilliamson1980/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cwilliamson1980/subscriptions","organizations_url":"https://api.github.com/users/cwilliamson1980/orgs","repos_url":"https://api.github.com/users/cwilliamson1980/repos","events_url":"https://api.github.com/users/cwilliamson1980/events{/privacy}","received_events_url":"https://api.github.com/users/cwilliamson1980/received_events","type":"User","site_admin":false},"body":"When >Foo is encountered then <blockquote>Foo</blockquote> is rendered.","created_at":"2014-10-08T16:50:36Z","updated_at":"2014-10-19T11:21:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b577147adc2c223418718a7f0119b4d2157d453f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/pulls/12/commits","review_comments_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/pulls/12/comments","review_comment_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/pulls/comments/{number}","comments_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/issues/12/comments","statuses_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/statuses/e9006e3105aefdbfe6df628bcce689ba69d4de0f","head":{"label":"cwilliamson1980:AddQuote","ref":"AddQuote","sha":"e9006e3105aefdbfe6df628bcce689ba69d4de0f","user":{"login":"cwilliamson1980","id":1222350,"avatar_url":"https://avatars.githubusercontent.com/u/1222350?v=2","gravatar_id":"","url":"https://api.github.com/users/cwilliamson1980","html_url":"https://github.com/cwilliamson1980","followers_url":"https://api.github.com/users/cwilliamson1980/followers","following_url":"https://api.github.com/users/cwilliamson1980/following{/other_user}","gists_url":"https://api.github.com/users/cwilliamson1980/gists{/gist_id}","starred_url":"https://api.github.com/users/cwilliamson1980/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cwilliamson1980/subscriptions","organizations_url":"https://api.github.com/users/cwilliamson1980/orgs","repos_url":"https://api.github.com/users/cwilliamson1980/repos","events_url":"https://api.github.com/users/cwilliamson1980/events{/privacy}","received_events_url":"https://api.github.com/users/cwilliamson1980/received_events","type":"User","site_admin":false},"repo":{"id":23618612,"name":"Tanka.Markdown","full_name":"cwilliamson1980/Tanka.Markdown","owner":{"login":"cwilliamson1980","id":1222350,"avatar_url":"https://avatars.githubusercontent.com/u/1222350?v=2","gravatar_id":"","url":"https://api.github.com/users/cwilliamson1980","html_url":"https://github.com/cwilliamson1980","followers_url":"https://api.github.com/users/cwilliamson1980/followers","following_url":"https://api.github.com/users/cwilliamson1980/following{/other_user}","gists_url":"https://api.github.com/users/cwilliamson1980/gists{/gist_id}","starred_url":"https://api.github.com/users/cwilliamson1980/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cwilliamson1980/subscriptions","organizations_url":"https://api.github.com/users/cwilliamson1980/orgs","repos_url":"https://api.github.com/users/cwilliamson1980/repos","events_url":"https://api.github.com/users/cwilliamson1980/events{/privacy}","received_events_url":"https://api.github.com/users/cwilliamson1980/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cwilliamson1980/Tanka.Markdown","description":"Extensible markdown parser","fork":true,"url":"https://api.github.com/repos/cwilliamson1980/Tanka.Markdown","forks_url":"https://api.github.com/repos/cwilliamson1980/Tanka.Markdown/forks","keys_url":"https://api.github.com/repos/cwilliamson1980/Tanka.Markdown/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cwilliamson1980/Tanka.Markdown/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cwilliamson1980/Tanka.Markdown/teams","hooks_url":"https://api.github.com/repos/cwilliamson1980/Tanka.Markdown/hooks","issue_events_url":"https://api.github.com/repos/cwilliamson1980/Tanka.Markdown/issues/events{/number}","events_url":"https://api.github.com/repos/cwilliamson1980/Tanka.Markdown/events","assignees_url":"https://api.github.com/repos/cwilliamson1980/Tanka.Markdown/assignees{/user}","branches_url":"https://api.github.com/repos/cwilliamson1980/Tanka.Markdown/branches{/branch}","tags_url":"https://api.github.com/repos/cwilliamson1980/Tanka.Markdown/tags","blobs_url":"https://api.github.com/repos/cwilliamson1980/Tanka.Markdown/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cwilliamson1980/Tanka.Markdown/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cwilliamson1980/Tanka.Markdown/git/refs{/sha}","trees_url":"https://api.github.com/repos/cwilliamson1980/Tanka.Markdown/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cwilliamson1980/Tanka.Markdown/statuses/{sha}","languages_url":"https://api.github.com/repos/cwilliamson1980/Tanka.Markdown/languages","stargazers_url":"https://api.github.com/repos/cwilliamson1980/Tanka.Markdown/stargazers","contributors_url":"https://api.github.com/repos/cwilliamson1980/Tanka.Markdown/contributors","subscribers_url":"https://api.github.com/repos/cwilliamson1980/Tanka.Markdown/subscribers","subscription_url":"https://api.github.com/repos/cwilliamson1980/Tanka.Markdown/subscription","commits_url":"https://api.github.com/repos/cwilliamson1980/Tanka.Markdown/commits{/sha}","git_commits_url":"https://api.github.com/repos/cwilliamson1980/Tanka.Markdown/git/commits{/sha}","comments_url":"https://api.github.com/repos/cwilliamson1980/Tanka.Markdown/comments{/number}","issue_comment_url":"https://api.github.com/repos/cwilliamson1980/Tanka.Markdown/issues/comments/{number}","contents_url":"https://api.github.com/repos/cwilliamson1980/Tanka.Markdown/contents/{+path}","compare_url":"https://api.github.com/repos/cwilliamson1980/Tanka.Markdown/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cwilliamson1980/Tanka.Markdown/merges","archive_url":"https://api.github.com/repos/cwilliamson1980/Tanka.Markdown/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cwilliamson1980/Tanka.Markdown/downloads","issues_url":"https://api.github.com/repos/cwilliamson1980/Tanka.Markdown/issues{/number}","pulls_url":"https://api.github.com/repos/cwilliamson1980/Tanka.Markdown/pulls{/number}","milestones_url":"https://api.github.com/repos/cwilliamson1980/Tanka.Markdown/milestones{/number}","notifications_url":"https://api.github.com/repos/cwilliamson1980/Tanka.Markdown/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cwilliamson1980/Tanka.Markdown/labels{/name}","releases_url":"https://api.github.com/repos/cwilliamson1980/Tanka.Markdown/releases{/id}","created_at":"2014-09-03T12:04:43Z","updated_at":"2014-09-03T12:16:50Z","pushed_at":"2014-10-18T10:50:56Z","git_url":"git://github.com/cwilliamson1980/Tanka.Markdown.git","ssh_url":"git@github.com:cwilliamson1980/Tanka.Markdown.git","clone_url":"https://github.com/cwilliamson1980/Tanka.Markdown.git","svn_url":"https://github.com/cwilliamson1980/Tanka.Markdown","homepage":null,"size":306,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pekkah:master","ref":"master","sha":"9f3254cc7e77f984c7ca024a5553b2a3dd61b312","user":{"login":"pekkah","id":822416,"avatar_url":"https://avatars.githubusercontent.com/u/822416?v=2","gravatar_id":"","url":"https://api.github.com/users/pekkah","html_url":"https://github.com/pekkah","followers_url":"https://api.github.com/users/pekkah/followers","following_url":"https://api.github.com/users/pekkah/following{/other_user}","gists_url":"https://api.github.com/users/pekkah/gists{/gist_id}","starred_url":"https://api.github.com/users/pekkah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pekkah/subscriptions","organizations_url":"https://api.github.com/users/pekkah/orgs","repos_url":"https://api.github.com/users/pekkah/repos","events_url":"https://api.github.com/users/pekkah/events{/privacy}","received_events_url":"https://api.github.com/users/pekkah/received_events","type":"User","site_admin":false},"repo":{"id":15267080,"name":"Tanka.Markdown","full_name":"pekkah/Tanka.Markdown","owner":{"login":"pekkah","id":822416,"avatar_url":"https://avatars.githubusercontent.com/u/822416?v=2","gravatar_id":"","url":"https://api.github.com/users/pekkah","html_url":"https://github.com/pekkah","followers_url":"https://api.github.com/users/pekkah/followers","following_url":"https://api.github.com/users/pekkah/following{/other_user}","gists_url":"https://api.github.com/users/pekkah/gists{/gist_id}","starred_url":"https://api.github.com/users/pekkah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pekkah/subscriptions","organizations_url":"https://api.github.com/users/pekkah/orgs","repos_url":"https://api.github.com/users/pekkah/repos","events_url":"https://api.github.com/users/pekkah/events{/privacy}","received_events_url":"https://api.github.com/users/pekkah/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pekkah/Tanka.Markdown","description":"Extensible markdown parser","fork":false,"url":"https://api.github.com/repos/pekkah/Tanka.Markdown","forks_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/forks","keys_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/teams","hooks_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/hooks","issue_events_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/issues/events{/number}","events_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/events","assignees_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/assignees{/user}","branches_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/branches{/branch}","tags_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/tags","blobs_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/git/refs{/sha}","trees_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/statuses/{sha}","languages_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/languages","stargazers_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/stargazers","contributors_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/contributors","subscribers_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/subscribers","subscription_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/subscription","commits_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/commits{/sha}","git_commits_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/git/commits{/sha}","comments_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/comments{/number}","issue_comment_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/issues/comments/{number}","contents_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/contents/{+path}","compare_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/merges","archive_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/downloads","issues_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/issues{/number}","pulls_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/pulls{/number}","milestones_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/milestones{/number}","notifications_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/labels{/name}","releases_url":"https://api.github.com/repos/pekkah/Tanka.Markdown/releases{/id}","created_at":"2013-12-17T21:58:05Z","updated_at":"2014-09-03T18:24:27Z","pushed_at":"2014-09-03T18:51:52Z","git_url":"git://github.com/pekkah/Tanka.Markdown.git","ssh_url":"git@github.com:pekkah/Tanka.Markdown.git","clone_url":"https://github.com/pekkah/Tanka.Markdown.git","svn_url":"https://github.com/pekkah/Tanka.Markdown","homepage":null,"size":709,"stargazers_count":1,"watchers_count":1,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pekkah/Tanka.Markdown/pulls/12"},"html":{"href":"https://github.com/pekkah/Tanka.Markdown/pull/12"},"issue":{"href":"https://api.github.com/repos/pekkah/Tanka.Markdown/issues/12"},"comments":{"href":"https://api.github.com/repos/pekkah/Tanka.Markdown/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/pekkah/Tanka.Markdown/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/pekkah/Tanka.Markdown/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/pekkah/Tanka.Markdown/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/pekkah/Tanka.Markdown/statuses/e9006e3105aefdbfe6df628bcce689ba69d4de0f"}}}}