{"action":"closed","number":5264,"pull_request":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/5264","id":63757110,"html_url":"https://github.com/CenterForOpenScience/osf.io/pull/5264","diff_url":"https://github.com/CenterForOpenScience/osf.io/pull/5264.diff","patch_url":"https://github.com/CenterForOpenScience/osf.io/pull/5264.patch","issue_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/5264","number":5264,"state":"closed","locked":false,"title":"[feature] MathJax rendering in SHARE","user":{"login":"ckc6cz","id":10505527,"avatar_url":"https://avatars.githubusercontent.com/u/10505527?v=3","gravatar_id":"","url":"https://api.github.com/users/ckc6cz","html_url":"https://github.com/ckc6cz","followers_url":"https://api.github.com/users/ckc6cz/followers","following_url":"https://api.github.com/users/ckc6cz/following{/other_user}","gists_url":"https://api.github.com/users/ckc6cz/gists{/gist_id}","starred_url":"https://api.github.com/users/ckc6cz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckc6cz/subscriptions","organizations_url":"https://api.github.com/users/ckc6cz/orgs","repos_url":"https://api.github.com/users/ckc6cz/repos","events_url":"https://api.github.com/users/ckc6cz/events{/privacy}","received_events_url":"https://api.github.com/users/ckc6cz/received_events","type":"User","site_admin":false},"body":"## Purpose\r\nCurrently, any descriptions in SHARE that contain LaTeX do not render correctly. For example, there is no math rendering in many of the descriptions for ArXiv (https://osf.io/share/?q=*&optional=match%3AshareProperties.source%3Aarxiv_oai&sort=Relevance# ).\r\nNow, whenever there is math present in a description, the equations and symbols will render correctly.\r\n\r\n## Changes \r\nThis PR uses MathJax to render LaTeX in the description section of any SHARE results. As a result some descriptions cannot be truncated to a shorter length. This is because when the descriptions automatically truncate to 350 characters, sometimes a math phrase or symbol becomes incomplete and MathJax cannot recognize it. Also, math phrases and symbols not recognized by MathJax are printed in red ink, but this isn’t super prevalent. \r\n\r\n**_BEFORE_**:\r\n![screen shot 2016-03-22 at 1 20 58 pm](https://cloud.githubusercontent.com/assets/10505527/13961012/1b883a28-f031-11e5-979d-23d3d178a86f.png)\r\n_**AFTER**_:\r\n![screen shot 2016-03-22 at 1 29 16 pm](https://cloud.githubusercontent.com/assets/10505527/13961243/24159b6c-f032-11e5-9484-d202689a8404.png)\r\n\r\n\r\n\r\n## Side Effects\r\nThe change in length of descriptions containing math and the red highlighting of math that could not be rendered by MathJax.","created_at":"2016-03-22T17:10:49Z","updated_at":"2016-10-04T13:38:11Z","closed_at":"2016-10-04T13:38:11Z","merged_at":null,"merge_commit_sha":"a86193f3f79ff4165e75f99ab8bc60108f109a5c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/5264/commits","review_comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/5264/comments","review_comment_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/5264/comments","statuses_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/2296fc21584c379c3cf2d439fc3bb978eee8e5ee","head":{"label":"ckc6cz:share_mathjax","ref":"share_mathjax","sha":"2296fc21584c379c3cf2d439fc3bb978eee8e5ee","user":{"login":"ckc6cz","id":10505527,"avatar_url":"https://avatars.githubusercontent.com/u/10505527?v=3","gravatar_id":"","url":"https://api.github.com/users/ckc6cz","html_url":"https://github.com/ckc6cz","followers_url":"https://api.github.com/users/ckc6cz/followers","following_url":"https://api.github.com/users/ckc6cz/following{/other_user}","gists_url":"https://api.github.com/users/ckc6cz/gists{/gist_id}","starred_url":"https://api.github.com/users/ckc6cz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckc6cz/subscriptions","organizations_url":"https://api.github.com/users/ckc6cz/orgs","repos_url":"https://api.github.com/users/ckc6cz/repos","events_url":"https://api.github.com/users/ckc6cz/events{/privacy}","received_events_url":"https://api.github.com/users/ckc6cz/received_events","type":"User","site_admin":false},"repo":{"id":41887676,"name":"osf.io","full_name":"ckc6cz/osf.io","owner":{"login":"ckc6cz","id":10505527,"avatar_url":"https://avatars.githubusercontent.com/u/10505527?v=3","gravatar_id":"","url":"https://api.github.com/users/ckc6cz","html_url":"https://github.com/ckc6cz","followers_url":"https://api.github.com/users/ckc6cz/followers","following_url":"https://api.github.com/users/ckc6cz/following{/other_user}","gists_url":"https://api.github.com/users/ckc6cz/gists{/gist_id}","starred_url":"https://api.github.com/users/ckc6cz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckc6cz/subscriptions","organizations_url":"https://api.github.com/users/ckc6cz/orgs","repos_url":"https://api.github.com/users/ckc6cz/repos","events_url":"https://api.github.com/users/ckc6cz/events{/privacy}","received_events_url":"https://api.github.com/users/ckc6cz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ckc6cz/osf.io","description":"Facilitating Open Science","fork":true,"url":"https://api.github.com/repos/ckc6cz/osf.io","forks_url":"https://api.github.com/repos/ckc6cz/osf.io/forks","keys_url":"https://api.github.com/repos/ckc6cz/osf.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ckc6cz/osf.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ckc6cz/osf.io/teams","hooks_url":"https://api.github.com/repos/ckc6cz/osf.io/hooks","issue_events_url":"https://api.github.com/repos/ckc6cz/osf.io/issues/events{/number}","events_url":"https://api.github.com/repos/ckc6cz/osf.io/events","assignees_url":"https://api.github.com/repos/ckc6cz/osf.io/assignees{/user}","branches_url":"https://api.github.com/repos/ckc6cz/osf.io/branches{/branch}","tags_url":"https://api.github.com/repos/ckc6cz/osf.io/tags","blobs_url":"https://api.github.com/repos/ckc6cz/osf.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ckc6cz/osf.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ckc6cz/osf.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/ckc6cz/osf.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ckc6cz/osf.io/statuses/{sha}","languages_url":"https://api.github.com/repos/ckc6cz/osf.io/languages","stargazers_url":"https://api.github.com/repos/ckc6cz/osf.io/stargazers","contributors_url":"https://api.github.com/repos/ckc6cz/osf.io/contributors","subscribers_url":"https://api.github.com/repos/ckc6cz/osf.io/subscribers","subscription_url":"https://api.github.com/repos/ckc6cz/osf.io/subscription","commits_url":"https://api.github.com/repos/ckc6cz/osf.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/ckc6cz/osf.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/ckc6cz/osf.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/ckc6cz/osf.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/ckc6cz/osf.io/contents/{+path}","compare_url":"https://api.github.com/repos/ckc6cz/osf.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ckc6cz/osf.io/merges","archive_url":"https://api.github.com/repos/ckc6cz/osf.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ckc6cz/osf.io/downloads","issues_url":"https://api.github.com/repos/ckc6cz/osf.io/issues{/number}","pulls_url":"https://api.github.com/repos/ckc6cz/osf.io/pulls{/number}","milestones_url":"https://api.github.com/repos/ckc6cz/osf.io/milestones{/number}","notifications_url":"https://api.github.com/repos/ckc6cz/osf.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ckc6cz/osf.io/labels{/name}","releases_url":"https://api.github.com/repos/ckc6cz/osf.io/releases{/id}","deployments_url":"https://api.github.com/repos/ckc6cz/osf.io/deployments","created_at":"2015-09-03T22:53:19Z","updated_at":"2015-09-03T22:53:24Z","pushed_at":"2016-04-13T17:04:52Z","git_url":"git://github.com/ckc6cz/osf.io.git","ssh_url":"git@github.com:ckc6cz/osf.io.git","clone_url":"https://github.com/ckc6cz/osf.io.git","svn_url":"https://github.com/ckc6cz/osf.io","homepage":"http://osf.io","size":123120,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"develop"}},"base":{"label":"CenterForOpenScience:develop","ref":"develop","sha":"3a7e0a53e1ce906e1839cd2179ce99706b99b54f","user":{"login":"CenterForOpenScience","id":3344584,"avatar_url":"https://avatars.githubusercontent.com/u/3344584?v=3","gravatar_id":"","url":"https://api.github.com/users/CenterForOpenScience","html_url":"https://github.com/CenterForOpenScience","followers_url":"https://api.github.com/users/CenterForOpenScience/followers","following_url":"https://api.github.com/users/CenterForOpenScience/following{/other_user}","gists_url":"https://api.github.com/users/CenterForOpenScience/gists{/gist_id}","starred_url":"https://api.github.com/users/CenterForOpenScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenterForOpenScience/subscriptions","organizations_url":"https://api.github.com/users/CenterForOpenScience/orgs","repos_url":"https://api.github.com/users/CenterForOpenScience/repos","events_url":"https://api.github.com/users/CenterForOpenScience/events{/privacy}","received_events_url":"https://api.github.com/users/CenterForOpenScience/received_events","type":"Organization","site_admin":false},"repo":{"id":10199599,"name":"osf.io","full_name":"CenterForOpenScience/osf.io","owner":{"login":"CenterForOpenScience","id":3344584,"avatar_url":"https://avatars.githubusercontent.com/u/3344584?v=3","gravatar_id":"","url":"https://api.github.com/users/CenterForOpenScience","html_url":"https://github.com/CenterForOpenScience","followers_url":"https://api.github.com/users/CenterForOpenScience/followers","following_url":"https://api.github.com/users/CenterForOpenScience/following{/other_user}","gists_url":"https://api.github.com/users/CenterForOpenScience/gists{/gist_id}","starred_url":"https://api.github.com/users/CenterForOpenScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenterForOpenScience/subscriptions","organizations_url":"https://api.github.com/users/CenterForOpenScience/orgs","repos_url":"https://api.github.com/users/CenterForOpenScience/repos","events_url":"https://api.github.com/users/CenterForOpenScience/events{/privacy}","received_events_url":"https://api.github.com/users/CenterForOpenScience/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CenterForOpenScience/osf.io","description":"Facilitating Open Science","fork":false,"url":"https://api.github.com/repos/CenterForOpenScience/osf.io","forks_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/forks","keys_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/teams","hooks_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/hooks","issue_events_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/events{/number}","events_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/events","assignees_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/assignees{/user}","branches_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/branches{/branch}","tags_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/tags","blobs_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/{sha}","languages_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/languages","stargazers_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/stargazers","contributors_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/contributors","subscribers_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/subscribers","subscription_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/subscription","commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/contents/{+path}","compare_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/merges","archive_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/downloads","issues_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues{/number}","pulls_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls{/number}","milestones_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/milestones{/number}","notifications_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/labels{/name}","releases_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/releases{/id}","deployments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/deployments","created_at":"2013-05-21T15:53:37Z","updated_at":"2016-10-04T13:24:01Z","pushed_at":"2016-10-04T13:37:08Z","git_url":"git://github.com/CenterForOpenScience/osf.io.git","ssh_url":"git@github.com:CenterForOpenScience/osf.io.git","clone_url":"https://github.com/CenterForOpenScience/osf.io.git","svn_url":"https://github.com/CenterForOpenScience/osf.io","homepage":"http://osf.io","size":270211,"stargazers_count":269,"watchers_count":269,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":204,"mirror_url":null,"open_issues_count":200,"forks":204,"open_issues":200,"watchers":269,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/5264"},"html":{"href":"https://github.com/CenterForOpenScience/osf.io/pull/5264"},"issue":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/5264"},"comments":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/5264/comments"},"review_comments":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/5264/comments"},"review_comment":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/5264/commits"},"statuses":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/2296fc21584c379c3cf2d439fc3bb978eee8e5ee"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":26,"review_comments":8,"commits":4,"additions":16,"deletions":4,"changed_files":2}}
{"actor":{"display_login":"brianjgeiger"}}