{"action":"created","comment":{"url":"https://api.github.com/repos/rohandaxini/knowbuddy/pulls/comments/34790906","id":34790906,"diff_hunk":"@@ -0,0 +1,181 @@\n+namespace :post do\n+  desc \"Modify all Existing Posts' markdown to support pagedown editor\"\n+\n+  NEW_LINE = \"\\r\\n\"\n+  HEADING_STYLES = [\"h1. \", \"h2. \", \"h3. \", \"h4. \", \"h5. \", \"h6. \"]\n+  REGEX_FOR_START_OF_IMG_URL = /(\\n!)/\n+  REGEX_FOR_END_OF_IMG_URL = /\\)!(\\n|\\r)/\n+  REGEX_TO_FIND_BC_DOT = /\\nbc\\.(.*?)\\r\\n\\r\\n/m\n+  REGEX_TO_FIND_EXISTING_NUMBERED_LIST = /(?<=\\n\\d)\\.\\s/im\n+  REGEX_TO_FIND_BOLD_CONTENT = /\\*[^\\s].*?\\*/\n+  REGEX_TO_FIND_START_HYPERLINK = /\\\"(?=.*\\])/\n+  REGEX_FOR_START_OF_ALTERNATE_TEXT_OF_IMG_URL = /(?<!\\n)\\((?!.*?\\))/\n+  REGEX_TO_FETCH_LINK_REFERENCE = /\\[\\d\\]\\:\\s.*?(?=\\s|\\Z)/im\n+  REGEX_TO_GET_EXACT_URL_REFERENCE = /[\\.|,|\"|_|\\s]+$/\n+  REGEX_TO_FIND_UNDERSCORES = /(?<=[\\s\\n\\\"])\\w+\\_\\w+/im\n+\n+  task markdown_conversion: :environment do\n+    Post.find_each(batch_size: 50) do |post|","path":"lib/tasks/markdown_conversion.rake","position":18,"original_position":18,"commit_id":"7c2aa0be7f9389289298dc420e64cb4a4d53c290","original_commit_id":"7c2aa0be7f9389289298dc420e64cb4a4d53c290","user":{"login":"ruchikamayekar","id":10151376,"avatar_url":"https://avatars.githubusercontent.com/u/10151376?v=3","gravatar_id":"","url":"https://api.github.com/users/ruchikamayekar","html_url":"https://github.com/ruchikamayekar","followers_url":"https://api.github.com/users/ruchikamayekar/followers","following_url":"https://api.github.com/users/ruchikamayekar/following{/other_user}","gists_url":"https://api.github.com/users/ruchikamayekar/gists{/gist_id}","starred_url":"https://api.github.com/users/ruchikamayekar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruchikamayekar/subscriptions","organizations_url":"https://api.github.com/users/ruchikamayekar/orgs","repos_url":"https://api.github.com/users/ruchikamayekar/repos","events_url":"https://api.github.com/users/ruchikamayekar/events{/privacy}","received_events_url":"https://api.github.com/users/ruchikamayekar/received_events","type":"User","site_admin":false},"body":"Okay, I'll make it as 10","created_at":"2015-07-16T14:12:23Z","updated_at":"2015-07-16T14:12:23Z","html_url":"https://github.com/rohandaxini/knowbuddy/pull/51#discussion_r34790906","pull_request_url":"https://api.github.com/repos/rohandaxini/knowbuddy/pulls/51","_links":{"self":{"href":"https://api.github.com/repos/rohandaxini/knowbuddy/pulls/comments/34790906"},"html":{"href":"https://github.com/rohandaxini/knowbuddy/pull/51#discussion_r34790906"},"pull_request":{"href":"https://api.github.com/repos/rohandaxini/knowbuddy/pulls/51"}}},"pull_request":{"url":"https://api.github.com/repos/rohandaxini/knowbuddy/pulls/51","id":38892744,"html_url":"https://github.com/rohandaxini/knowbuddy/pull/51","diff_url":"https://github.com/rohandaxini/knowbuddy/pull/51.diff","patch_url":"https://github.com/rohandaxini/knowbuddy/pull/51.patch","issue_url":"https://api.github.com/repos/rohandaxini/knowbuddy/issues/51","number":51,"state":"open","locked":false,"title":"Integrate pagedown editor","user":{"login":"ruchikamayekar","id":10151376,"avatar_url":"https://avatars.githubusercontent.com/u/10151376?v=3","gravatar_id":"","url":"https://api.github.com/users/ruchikamayekar","html_url":"https://github.com/ruchikamayekar","followers_url":"https://api.github.com/users/ruchikamayekar/followers","following_url":"https://api.github.com/users/ruchikamayekar/following{/other_user}","gists_url":"https://api.github.com/users/ruchikamayekar/gists{/gist_id}","starred_url":"https://api.github.com/users/ruchikamayekar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruchikamayekar/subscriptions","organizations_url":"https://api.github.com/users/ruchikamayekar/orgs","repos_url":"https://api.github.com/users/ruchikamayekar/repos","events_url":"https://api.github.com/users/ruchikamayekar/events{/privacy}","received_events_url":"https://api.github.com/users/ruchikamayekar/received_events","type":"User","site_admin":false},"body":"Hi @rohandaxini \r\n\r\nThis PR contains changes for integrating pagedown editor with the app\r\n\r\nThanks","created_at":"2015-06-30T15:45:13Z","updated_at":"2015-07-16T14:12:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"763b0fbc6bc6f6f0426161805bb36438ba610069","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rohandaxini/knowbuddy/pulls/51/commits","review_comments_url":"https://api.github.com/repos/rohandaxini/knowbuddy/pulls/51/comments","review_comment_url":"https://api.github.com/repos/rohandaxini/knowbuddy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rohandaxini/knowbuddy/issues/51/comments","statuses_url":"https://api.github.com/repos/rohandaxini/knowbuddy/statuses/7c2aa0be7f9389289298dc420e64cb4a4d53c290","head":{"label":"rohandaxini:integrate-pagedown-editor","ref":"integrate-pagedown-editor","sha":"7c2aa0be7f9389289298dc420e64cb4a4d53c290","user":{"login":"rohandaxini","id":970712,"avatar_url":"https://avatars.githubusercontent.com/u/970712?v=3","gravatar_id":"","url":"https://api.github.com/users/rohandaxini","html_url":"https://github.com/rohandaxini","followers_url":"https://api.github.com/users/rohandaxini/followers","following_url":"https://api.github.com/users/rohandaxini/following{/other_user}","gists_url":"https://api.github.com/users/rohandaxini/gists{/gist_id}","starred_url":"https://api.github.com/users/rohandaxini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rohandaxini/subscriptions","organizations_url":"https://api.github.com/users/rohandaxini/orgs","repos_url":"https://api.github.com/users/rohandaxini/repos","events_url":"https://api.github.com/users/rohandaxini/events{/privacy}","received_events_url":"https://api.github.com/users/rohandaxini/received_events","type":"User","site_admin":false},"repo":{"id":3616675,"name":"knowbuddy","full_name":"rohandaxini/knowbuddy","owner":{"login":"rohandaxini","id":970712,"avatar_url":"https://avatars.githubusercontent.com/u/970712?v=3","gravatar_id":"","url":"https://api.github.com/users/rohandaxini","html_url":"https://github.com/rohandaxini","followers_url":"https://api.github.com/users/rohandaxini/followers","following_url":"https://api.github.com/users/rohandaxini/following{/other_user}","gists_url":"https://api.github.com/users/rohandaxini/gists{/gist_id}","starred_url":"https://api.github.com/users/rohandaxini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rohandaxini/subscriptions","organizations_url":"https://api.github.com/users/rohandaxini/orgs","repos_url":"https://api.github.com/users/rohandaxini/repos","events_url":"https://api.github.com/users/rohandaxini/events{/privacy}","received_events_url":"https://api.github.com/users/rohandaxini/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rohandaxini/knowbuddy","description":"Knowledge Buddy","fork":false,"url":"https://api.github.com/repos/rohandaxini/knowbuddy","forks_url":"https://api.github.com/repos/rohandaxini/knowbuddy/forks","keys_url":"https://api.github.com/repos/rohandaxini/knowbuddy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rohandaxini/knowbuddy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rohandaxini/knowbuddy/teams","hooks_url":"https://api.github.com/repos/rohandaxini/knowbuddy/hooks","issue_events_url":"https://api.github.com/repos/rohandaxini/knowbuddy/issues/events{/number}","events_url":"https://api.github.com/repos/rohandaxini/knowbuddy/events","assignees_url":"https://api.github.com/repos/rohandaxini/knowbuddy/assignees{/user}","branches_url":"https://api.github.com/repos/rohandaxini/knowbuddy/branches{/branch}","tags_url":"https://api.github.com/repos/rohandaxini/knowbuddy/tags","blobs_url":"https://api.github.com/repos/rohandaxini/knowbuddy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rohandaxini/knowbuddy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rohandaxini/knowbuddy/git/refs{/sha}","trees_url":"https://api.github.com/repos/rohandaxini/knowbuddy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rohandaxini/knowbuddy/statuses/{sha}","languages_url":"https://api.github.com/repos/rohandaxini/knowbuddy/languages","stargazers_url":"https://api.github.com/repos/rohandaxini/knowbuddy/stargazers","contributors_url":"https://api.github.com/repos/rohandaxini/knowbuddy/contributors","subscribers_url":"https://api.github.com/repos/rohandaxini/knowbuddy/subscribers","subscription_url":"https://api.github.com/repos/rohandaxini/knowbuddy/subscription","commits_url":"https://api.github.com/repos/rohandaxini/knowbuddy/commits{/sha}","git_commits_url":"https://api.github.com/repos/rohandaxini/knowbuddy/git/commits{/sha}","comments_url":"https://api.github.com/repos/rohandaxini/knowbuddy/comments{/number}","issue_comment_url":"https://api.github.com/repos/rohandaxini/knowbuddy/issues/comments{/number}","contents_url":"https://api.github.com/repos/rohandaxini/knowbuddy/contents/{+path}","compare_url":"https://api.github.com/repos/rohandaxini/knowbuddy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rohandaxini/knowbuddy/merges","archive_url":"https://api.github.com/repos/rohandaxini/knowbuddy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rohandaxini/knowbuddy/downloads","issues_url":"https://api.github.com/repos/rohandaxini/knowbuddy/issues{/number}","pulls_url":"https://api.github.com/repos/rohandaxini/knowbuddy/pulls{/number}","milestones_url":"https://api.github.com/repos/rohandaxini/knowbuddy/milestones{/number}","notifications_url":"https://api.github.com/repos/rohandaxini/knowbuddy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rohandaxini/knowbuddy/labels{/name}","releases_url":"https://api.github.com/repos/rohandaxini/knowbuddy/releases{/id}","created_at":"2012-03-04T07:19:54Z","updated_at":"2015-06-02T16:00:41Z","pushed_at":"2015-07-16T12:24:13Z","git_url":"git://github.com/rohandaxini/knowbuddy.git","ssh_url":"git@github.com:rohandaxini/knowbuddy.git","clone_url":"https://github.com/rohandaxini/knowbuddy.git","svn_url":"https://github.com/rohandaxini/knowbuddy","homepage":"","size":3254,"stargazers_count":7,"watchers_count":7,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":7,"default_branch":"master"}},"base":{"label":"rohandaxini:master","ref":"master","sha":"b6e017e47453ede42981d9cd4a3e008df8b2e36a","user":{"login":"rohandaxini","id":970712,"avatar_url":"https://avatars.githubusercontent.com/u/970712?v=3","gravatar_id":"","url":"https://api.github.com/users/rohandaxini","html_url":"https://github.com/rohandaxini","followers_url":"https://api.github.com/users/rohandaxini/followers","following_url":"https://api.github.com/users/rohandaxini/following{/other_user}","gists_url":"https://api.github.com/users/rohandaxini/gists{/gist_id}","starred_url":"https://api.github.com/users/rohandaxini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rohandaxini/subscriptions","organizations_url":"https://api.github.com/users/rohandaxini/orgs","repos_url":"https://api.github.com/users/rohandaxini/repos","events_url":"https://api.github.com/users/rohandaxini/events{/privacy}","received_events_url":"https://api.github.com/users/rohandaxini/received_events","type":"User","site_admin":false},"repo":{"id":3616675,"name":"knowbuddy","full_name":"rohandaxini/knowbuddy","owner":{"login":"rohandaxini","id":970712,"avatar_url":"https://avatars.githubusercontent.com/u/970712?v=3","gravatar_id":"","url":"https://api.github.com/users/rohandaxini","html_url":"https://github.com/rohandaxini","followers_url":"https://api.github.com/users/rohandaxini/followers","following_url":"https://api.github.com/users/rohandaxini/following{/other_user}","gists_url":"https://api.github.com/users/rohandaxini/gists{/gist_id}","starred_url":"https://api.github.com/users/rohandaxini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rohandaxini/subscriptions","organizations_url":"https://api.github.com/users/rohandaxini/orgs","repos_url":"https://api.github.com/users/rohandaxini/repos","events_url":"https://api.github.com/users/rohandaxini/events{/privacy}","received_events_url":"https://api.github.com/users/rohandaxini/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rohandaxini/knowbuddy","description":"Knowledge Buddy","fork":false,"url":"https://api.github.com/repos/rohandaxini/knowbuddy","forks_url":"https://api.github.com/repos/rohandaxini/knowbuddy/forks","keys_url":"https://api.github.com/repos/rohandaxini/knowbuddy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rohandaxini/knowbuddy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rohandaxini/knowbuddy/teams","hooks_url":"https://api.github.com/repos/rohandaxini/knowbuddy/hooks","issue_events_url":"https://api.github.com/repos/rohandaxini/knowbuddy/issues/events{/number}","events_url":"https://api.github.com/repos/rohandaxini/knowbuddy/events","assignees_url":"https://api.github.com/repos/rohandaxini/knowbuddy/assignees{/user}","branches_url":"https://api.github.com/repos/rohandaxini/knowbuddy/branches{/branch}","tags_url":"https://api.github.com/repos/rohandaxini/knowbuddy/tags","blobs_url":"https://api.github.com/repos/rohandaxini/knowbuddy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rohandaxini/knowbuddy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rohandaxini/knowbuddy/git/refs{/sha}","trees_url":"https://api.github.com/repos/rohandaxini/knowbuddy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rohandaxini/knowbuddy/statuses/{sha}","languages_url":"https://api.github.com/repos/rohandaxini/knowbuddy/languages","stargazers_url":"https://api.github.com/repos/rohandaxini/knowbuddy/stargazers","contributors_url":"https://api.github.com/repos/rohandaxini/knowbuddy/contributors","subscribers_url":"https://api.github.com/repos/rohandaxini/knowbuddy/subscribers","subscription_url":"https://api.github.com/repos/rohandaxini/knowbuddy/subscription","commits_url":"https://api.github.com/repos/rohandaxini/knowbuddy/commits{/sha}","git_commits_url":"https://api.github.com/repos/rohandaxini/knowbuddy/git/commits{/sha}","comments_url":"https://api.github.com/repos/rohandaxini/knowbuddy/comments{/number}","issue_comment_url":"https://api.github.com/repos/rohandaxini/knowbuddy/issues/comments{/number}","contents_url":"https://api.github.com/repos/rohandaxini/knowbuddy/contents/{+path}","compare_url":"https://api.github.com/repos/rohandaxini/knowbuddy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rohandaxini/knowbuddy/merges","archive_url":"https://api.github.com/repos/rohandaxini/knowbuddy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rohandaxini/knowbuddy/downloads","issues_url":"https://api.github.com/repos/rohandaxini/knowbuddy/issues{/number}","pulls_url":"https://api.github.com/repos/rohandaxini/knowbuddy/pulls{/number}","milestones_url":"https://api.github.com/repos/rohandaxini/knowbuddy/milestones{/number}","notifications_url":"https://api.github.com/repos/rohandaxini/knowbuddy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rohandaxini/knowbuddy/labels{/name}","releases_url":"https://api.github.com/repos/rohandaxini/knowbuddy/releases{/id}","created_at":"2012-03-04T07:19:54Z","updated_at":"2015-06-02T16:00:41Z","pushed_at":"2015-07-16T12:24:13Z","git_url":"git://github.com/rohandaxini/knowbuddy.git","ssh_url":"git@github.com:rohandaxini/knowbuddy.git","clone_url":"https://github.com/rohandaxini/knowbuddy.git","svn_url":"https://github.com/rohandaxini/knowbuddy","homepage":"","size":3254,"stargazers_count":7,"watchers_count":7,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rohandaxini/knowbuddy/pulls/51"},"html":{"href":"https://github.com/rohandaxini/knowbuddy/pull/51"},"issue":{"href":"https://api.github.com/repos/rohandaxini/knowbuddy/issues/51"},"comments":{"href":"https://api.github.com/repos/rohandaxini/knowbuddy/issues/51/comments"},"review_comments":{"href":"https://api.github.com/repos/rohandaxini/knowbuddy/pulls/51/comments"},"review_comment":{"href":"https://api.github.com/repos/rohandaxini/knowbuddy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rohandaxini/knowbuddy/pulls/51/commits"},"statuses":{"href":"https://api.github.com/repos/rohandaxini/knowbuddy/statuses/7c2aa0be7f9389289298dc420e64cb4a4d53c290"}}}}