{"action":"created","comment":{"url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/pulls/comments/205063648","pull_request_review_id":140251409,"id":205063648,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNTA2MzY0OA==","diff_hunk":"@@ -37,3 +37,17 @@ export const getLessonIntro = (course, lesson, language, isReadme) => {\n   const {path} = getLessonFrontmatter(course, lesson, language, isReadme);\n   return extractFirstPartOfHtml(lessonContent, path);\n };\n+\n+/**\n+ * Get the text in the first part of HTML markup for the lesson.\n+ * @param {string} course E.g. 'scratch'\n+ * @param {string} lesson E.g. 'astrokatt'\n+ * @param {string} language E.g. 'nb'\n+ * @param {boolean} isReadme\n+ * @returns {string} Text to e.g. display in a description.\n+ */\n+export const getLessonIntroText = (course, lesson, language, isReadme) => {\n+  let content = '';","path":"src/resources/lessonContent.js","position":14,"original_position":14,"commit_id":"832322e9d71c8f6ab6ff1aab9e81b47318df1070","original_commit_id":"832322e9d71c8f6ab6ff1aab9e81b47318df1070","user":{"login":"NorwegianKiwi","id":8851134,"node_id":"MDQ6VXNlcjg4NTExMzQ=","avatar_url":"https://avatars1.githubusercontent.com/u/8851134?v=4","gravatar_id":"","url":"https://api.github.com/users/NorwegianKiwi","html_url":"https://github.com/NorwegianKiwi","followers_url":"https://api.github.com/users/NorwegianKiwi/followers","following_url":"https://api.github.com/users/NorwegianKiwi/following{/other_user}","gists_url":"https://api.github.com/users/NorwegianKiwi/gists{/gist_id}","starred_url":"https://api.github.com/users/NorwegianKiwi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NorwegianKiwi/subscriptions","organizations_url":"https://api.github.com/users/NorwegianKiwi/orgs","repos_url":"https://api.github.com/users/NorwegianKiwi/repos","events_url":"https://api.github.com/users/NorwegianKiwi/events{/privacy}","received_events_url":"https://api.github.com/users/NorwegianKiwi/received_events","type":"User","site_admin":false},"body":"Kunne du ikke droppet return, og bare returnert getLessonIntro direkte?","created_at":"2018-07-25T10:48:35Z","updated_at":"2018-07-25T10:49:38Z","html_url":"https://github.com/kodeklubben/codeclub-viewer/pull/493#discussion_r205063648","pull_request_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/pulls/493","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/kodeklubben/codeclub-viewer/pulls/comments/205063648"},"html":{"href":"https://github.com/kodeklubben/codeclub-viewer/pull/493#discussion_r205063648"},"pull_request":{"href":"https://api.github.com/repos/kodeklubben/codeclub-viewer/pulls/493"}}},"pull_request":{"url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/pulls/493","id":195461309,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1NDYxMzA5","html_url":"https://github.com/kodeklubben/codeclub-viewer/pull/493","diff_url":"https://github.com/kodeklubben/codeclub-viewer/pull/493.diff","patch_url":"https://github.com/kodeklubben/codeclub-viewer/pull/493.patch","issue_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/issues/493","number":493,"state":"open","locked":false,"title":"Issue 466 improving html and head tag","user":{"login":"Skagevang","id":11090538,"node_id":"MDQ6VXNlcjExMDkwNTM4","avatar_url":"https://avatars0.githubusercontent.com/u/11090538?v=4","gravatar_id":"","url":"https://api.github.com/users/Skagevang","html_url":"https://github.com/Skagevang","followers_url":"https://api.github.com/users/Skagevang/followers","following_url":"https://api.github.com/users/Skagevang/following{/other_user}","gists_url":"https://api.github.com/users/Skagevang/gists{/gist_id}","starred_url":"https://api.github.com/users/Skagevang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Skagevang/subscriptions","organizations_url":"https://api.github.com/users/Skagevang/orgs","repos_url":"https://api.github.com/users/Skagevang/repos","events_url":"https://api.github.com/users/Skagevang/events{/privacy}","received_events_url":"https://api.github.com/users/Skagevang/received_events","type":"User","site_admin":false},"body":"Solves #466 by using react-helmet","created_at":"2018-06-18T09:04:48Z","updated_at":"2018-07-25T10:49:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f25ece9711b09dbd6343d60752f21c9f09fea306","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":402203398,"node_id":"MDU6TGFiZWw0MDIyMDMzOTg=","url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/labels/PR:%20Needs%20Review","name":"PR: Needs Review","color":"0081E6","default":false}],"milestone":{"url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/milestones/10","html_url":"https://github.com/kodeklubben/codeclub-viewer/milestone/10","labels_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/milestones/10/labels","id":2939870,"node_id":"MDk6TWlsZXN0b25lMjkzOTg3MA==","number":10,"title":"Accessibility","description":"Further development for accessibility (universell utforming).\r\n\r\nSørg for at sidene er universelt utformet. Se f.eks. følgende lenker:\r\n\r\n* https://uu.difi.no/\r\n* https://egghead.io/courses/start-building-accessible-web-applications-today\r\n\r\nSynes også vi skal vurdere å implementere mulighet for å slå på en font som hjelper de med dysleksi å lese:\r\n* http://opendyslexic.org/\r\n* https://github.com/antijingoist/open-dyslexic\r\n* https://github.com/antijingoist/open-dyslexic/wiki/How-to:-Use-on-your-website\r\n\r\nSe også:\r\n* https://github.com/evcohen/eslint-plugin-jsx-a11y\r\n","creator":{"login":"Skagevang","id":11090538,"node_id":"MDQ6VXNlcjExMDkwNTM4","avatar_url":"https://avatars0.githubusercontent.com/u/11090538?v=4","gravatar_id":"","url":"https://api.github.com/users/Skagevang","html_url":"https://github.com/Skagevang","followers_url":"https://api.github.com/users/Skagevang/followers","following_url":"https://api.github.com/users/Skagevang/following{/other_user}","gists_url":"https://api.github.com/users/Skagevang/gists{/gist_id}","starred_url":"https://api.github.com/users/Skagevang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Skagevang/subscriptions","organizations_url":"https://api.github.com/users/Skagevang/orgs","repos_url":"https://api.github.com/users/Skagevang/repos","events_url":"https://api.github.com/users/Skagevang/events{/privacy}","received_events_url":"https://api.github.com/users/Skagevang/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":3,"state":"open","created_at":"2017-11-27T14:36:42Z","updated_at":"2018-07-23T20:28:27Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/pulls/493/commits","review_comments_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/pulls/493/comments","review_comment_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/issues/493/comments","statuses_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/statuses/832322e9d71c8f6ab6ff1aab9e81b47318df1070","head":{"label":"Skagevang:html-head","ref":"html-head","sha":"832322e9d71c8f6ab6ff1aab9e81b47318df1070","user":{"login":"Skagevang","id":11090538,"node_id":"MDQ6VXNlcjExMDkwNTM4","avatar_url":"https://avatars0.githubusercontent.com/u/11090538?v=4","gravatar_id":"","url":"https://api.github.com/users/Skagevang","html_url":"https://github.com/Skagevang","followers_url":"https://api.github.com/users/Skagevang/followers","following_url":"https://api.github.com/users/Skagevang/following{/other_user}","gists_url":"https://api.github.com/users/Skagevang/gists{/gist_id}","starred_url":"https://api.github.com/users/Skagevang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Skagevang/subscriptions","organizations_url":"https://api.github.com/users/Skagevang/orgs","repos_url":"https://api.github.com/users/Skagevang/repos","events_url":"https://api.github.com/users/Skagevang/events{/privacy}","received_events_url":"https://api.github.com/users/Skagevang/received_events","type":"User","site_admin":false},"repo":{"id":94858710,"node_id":"MDEwOlJlcG9zaXRvcnk5NDg1ODcxMA==","name":"codeclub-viewer","full_name":"Skagevang/codeclub-viewer","owner":{"login":"Skagevang","id":11090538,"node_id":"MDQ6VXNlcjExMDkwNTM4","avatar_url":"https://avatars0.githubusercontent.com/u/11090538?v=4","gravatar_id":"","url":"https://api.github.com/users/Skagevang","html_url":"https://github.com/Skagevang","followers_url":"https://api.github.com/users/Skagevang/followers","following_url":"https://api.github.com/users/Skagevang/following{/other_user}","gists_url":"https://api.github.com/users/Skagevang/gists{/gist_id}","starred_url":"https://api.github.com/users/Skagevang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Skagevang/subscriptions","organizations_url":"https://api.github.com/users/Skagevang/orgs","repos_url":"https://api.github.com/users/Skagevang/repos","events_url":"https://api.github.com/users/Skagevang/events{/privacy}","received_events_url":"https://api.github.com/users/Skagevang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Skagevang/codeclub-viewer","description":"A viewer to display codeclub lessons","fork":true,"url":"https://api.github.com/repos/Skagevang/codeclub-viewer","forks_url":"https://api.github.com/repos/Skagevang/codeclub-viewer/forks","keys_url":"https://api.github.com/repos/Skagevang/codeclub-viewer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Skagevang/codeclub-viewer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Skagevang/codeclub-viewer/teams","hooks_url":"https://api.github.com/repos/Skagevang/codeclub-viewer/hooks","issue_events_url":"https://api.github.com/repos/Skagevang/codeclub-viewer/issues/events{/number}","events_url":"https://api.github.com/repos/Skagevang/codeclub-viewer/events","assignees_url":"https://api.github.com/repos/Skagevang/codeclub-viewer/assignees{/user}","branches_url":"https://api.github.com/repos/Skagevang/codeclub-viewer/branches{/branch}","tags_url":"https://api.github.com/repos/Skagevang/codeclub-viewer/tags","blobs_url":"https://api.github.com/repos/Skagevang/codeclub-viewer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Skagevang/codeclub-viewer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Skagevang/codeclub-viewer/git/refs{/sha}","trees_url":"https://api.github.com/repos/Skagevang/codeclub-viewer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Skagevang/codeclub-viewer/statuses/{sha}","languages_url":"https://api.github.com/repos/Skagevang/codeclub-viewer/languages","stargazers_url":"https://api.github.com/repos/Skagevang/codeclub-viewer/stargazers","contributors_url":"https://api.github.com/repos/Skagevang/codeclub-viewer/contributors","subscribers_url":"https://api.github.com/repos/Skagevang/codeclub-viewer/subscribers","subscription_url":"https://api.github.com/repos/Skagevang/codeclub-viewer/subscription","commits_url":"https://api.github.com/repos/Skagevang/codeclub-viewer/commits{/sha}","git_commits_url":"https://api.github.com/repos/Skagevang/codeclub-viewer/git/commits{/sha}","comments_url":"https://api.github.com/repos/Skagevang/codeclub-viewer/comments{/number}","issue_comment_url":"https://api.github.com/repos/Skagevang/codeclub-viewer/issues/comments{/number}","contents_url":"https://api.github.com/repos/Skagevang/codeclub-viewer/contents/{+path}","compare_url":"https://api.github.com/repos/Skagevang/codeclub-viewer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Skagevang/codeclub-viewer/merges","archive_url":"https://api.github.com/repos/Skagevang/codeclub-viewer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Skagevang/codeclub-viewer/downloads","issues_url":"https://api.github.com/repos/Skagevang/codeclub-viewer/issues{/number}","pulls_url":"https://api.github.com/repos/Skagevang/codeclub-viewer/pulls{/number}","milestones_url":"https://api.github.com/repos/Skagevang/codeclub-viewer/milestones{/number}","notifications_url":"https://api.github.com/repos/Skagevang/codeclub-viewer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Skagevang/codeclub-viewer/labels{/name}","releases_url":"https://api.github.com/repos/Skagevang/codeclub-viewer/releases{/id}","deployments_url":"https://api.github.com/repos/Skagevang/codeclub-viewer/deployments","created_at":"2017-06-20T06:45:22Z","updated_at":"2018-06-21T10:53:18Z","pushed_at":"2018-07-25T00:26:50Z","git_url":"git://github.com/Skagevang/codeclub-viewer.git","ssh_url":"git@github.com:Skagevang/codeclub-viewer.git","clone_url":"https://github.com/Skagevang/codeclub-viewer.git","svn_url":"https://github.com/Skagevang/codeclub-viewer","homepage":null,"size":8383,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"kodeklubben:master","ref":"master","sha":"9913a4f0182847739cdfd8291ef6825c3f354876","user":{"login":"kodeklubben","id":4325933,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzMjU5MzM=","avatar_url":"https://avatars1.githubusercontent.com/u/4325933?v=4","gravatar_id":"","url":"https://api.github.com/users/kodeklubben","html_url":"https://github.com/kodeklubben","followers_url":"https://api.github.com/users/kodeklubben/followers","following_url":"https://api.github.com/users/kodeklubben/following{/other_user}","gists_url":"https://api.github.com/users/kodeklubben/gists{/gist_id}","starred_url":"https://api.github.com/users/kodeklubben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kodeklubben/subscriptions","organizations_url":"https://api.github.com/users/kodeklubben/orgs","repos_url":"https://api.github.com/users/kodeklubben/repos","events_url":"https://api.github.com/users/kodeklubben/events{/privacy}","received_events_url":"https://api.github.com/users/kodeklubben/received_events","type":"Organization","site_admin":false},"repo":{"id":57991455,"node_id":"MDEwOlJlcG9zaXRvcnk1Nzk5MTQ1NQ==","name":"codeclub-viewer","full_name":"kodeklubben/codeclub-viewer","owner":{"login":"kodeklubben","id":4325933,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzMjU5MzM=","avatar_url":"https://avatars1.githubusercontent.com/u/4325933?v=4","gravatar_id":"","url":"https://api.github.com/users/kodeklubben","html_url":"https://github.com/kodeklubben","followers_url":"https://api.github.com/users/kodeklubben/followers","following_url":"https://api.github.com/users/kodeklubben/following{/other_user}","gists_url":"https://api.github.com/users/kodeklubben/gists{/gist_id}","starred_url":"https://api.github.com/users/kodeklubben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kodeklubben/subscriptions","organizations_url":"https://api.github.com/users/kodeklubben/orgs","repos_url":"https://api.github.com/users/kodeklubben/repos","events_url":"https://api.github.com/users/kodeklubben/events{/privacy}","received_events_url":"https://api.github.com/users/kodeklubben/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kodeklubben/codeclub-viewer","description":"A viewer to display codeclub lessons","fork":false,"url":"https://api.github.com/repos/kodeklubben/codeclub-viewer","forks_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/forks","keys_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/teams","hooks_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/hooks","issue_events_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/issues/events{/number}","events_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/events","assignees_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/assignees{/user}","branches_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/branches{/branch}","tags_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/tags","blobs_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/git/refs{/sha}","trees_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/statuses/{sha}","languages_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/languages","stargazers_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/stargazers","contributors_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/contributors","subscribers_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/subscribers","subscription_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/subscription","commits_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/commits{/sha}","git_commits_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/git/commits{/sha}","comments_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/comments{/number}","issue_comment_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/issues/comments{/number}","contents_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/contents/{+path}","compare_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/merges","archive_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/downloads","issues_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/issues{/number}","pulls_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/pulls{/number}","milestones_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/milestones{/number}","notifications_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/labels{/name}","releases_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/releases{/id}","deployments_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/deployments","created_at":"2016-05-03T18:25:10Z","updated_at":"2018-07-24T11:48:04Z","pushed_at":"2018-07-25T10:22:42Z","git_url":"git://github.com/kodeklubben/codeclub-viewer.git","ssh_url":"git@github.com:kodeklubben/codeclub-viewer.git","clone_url":"https://github.com/kodeklubben/codeclub-viewer.git","svn_url":"https://github.com/kodeklubben/codeclub-viewer","homepage":null,"size":7530,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"archived":false,"open_issues_count":58,"license":null,"forks":14,"open_issues":58,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kodeklubben/codeclub-viewer/pulls/493"},"html":{"href":"https://github.com/kodeklubben/codeclub-viewer/pull/493"},"issue":{"href":"https://api.github.com/repos/kodeklubben/codeclub-viewer/issues/493"},"comments":{"href":"https://api.github.com/repos/kodeklubben/codeclub-viewer/issues/493/comments"},"review_comments":{"href":"https://api.github.com/repos/kodeklubben/codeclub-viewer/pulls/493/comments"},"review_comment":{"href":"https://api.github.com/repos/kodeklubben/codeclub-viewer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kodeklubben/codeclub-viewer/pulls/493/commits"},"statuses":{"href":"https://api.github.com/repos/kodeklubben/codeclub-viewer/statuses/832322e9d71c8f6ab6ff1aab9e81b47318df1070"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"NorwegianKiwi"}}