{"action":"created","issue":{"url":"https://api.github.com/repos/Khan/KaTeX/issues/923","repository_url":"https://api.github.com/repos/Khan/KaTeX","labels_url":"https://api.github.com/repos/Khan/KaTeX/issues/923/labels{/name}","comments_url":"https://api.github.com/repos/Khan/KaTeX/issues/923/comments","events_url":"https://api.github.com/repos/Khan/KaTeX/issues/923/events","html_url":"https://github.com/Khan/KaTeX/pull/923","id":263877688,"number":923,"title":"Implemented `\\href' command","user":{"login":"konn","id":21860,"avatar_url":"https://avatars0.githubusercontent.com/u/21860?v=4","gravatar_id":"","url":"https://api.github.com/users/konn","html_url":"https://github.com/konn","followers_url":"https://api.github.com/users/konn/followers","following_url":"https://api.github.com/users/konn/following{/other_user}","gists_url":"https://api.github.com/users/konn/gists{/gist_id}","starred_url":"https://api.github.com/users/konn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/konn/subscriptions","organizations_url":"https://api.github.com/users/konn/orgs","repos_url":"https://api.github.com/users/konn/repos","events_url":"https://api.github.com/users/konn/events{/privacy}","received_events_url":"https://api.github.com/users/konn/received_events","type":"User","site_admin":false},"labels":[{"id":255328091,"url":"https://api.github.com/repos/Khan/KaTeX/labels/GH%20Review:%20review-needed","name":"GH Review: review-needed","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":{"login":"kevinbarabash","id":1044413,"avatar_url":"https://avatars3.githubusercontent.com/u/1044413?v=4","gravatar_id":"","url":"https://api.github.com/users/kevinbarabash","html_url":"https://github.com/kevinbarabash","followers_url":"https://api.github.com/users/kevinbarabash/followers","following_url":"https://api.github.com/users/kevinbarabash/following{/other_user}","gists_url":"https://api.github.com/users/kevinbarabash/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinbarabash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinbarabash/subscriptions","organizations_url":"https://api.github.com/users/kevinbarabash/orgs","repos_url":"https://api.github.com/users/kevinbarabash/repos","events_url":"https://api.github.com/users/kevinbarabash/events{/privacy}","received_events_url":"https://api.github.com/users/kevinbarabash/received_events","type":"User","site_admin":false},"assignees":[{"login":"kevinbarabash","id":1044413,"avatar_url":"https://avatars3.githubusercontent.com/u/1044413?v=4","gravatar_id":"","url":"https://api.github.com/users/kevinbarabash","html_url":"https://github.com/kevinbarabash","followers_url":"https://api.github.com/users/kevinbarabash/followers","following_url":"https://api.github.com/users/kevinbarabash/following{/other_user}","gists_url":"https://api.github.com/users/kevinbarabash/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinbarabash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinbarabash/subscriptions","organizations_url":"https://api.github.com/users/kevinbarabash/orgs","repos_url":"https://api.github.com/users/kevinbarabash/repos","events_url":"https://api.github.com/users/kevinbarabash/events{/privacy}","received_events_url":"https://api.github.com/users/kevinbarabash/received_events","type":"User","site_admin":false}],"milestone":null,"comments":12,"created_at":"2017-10-09T12:28:51Z","updated_at":"2017-11-24T04:16:21Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/Khan/KaTeX/pulls/923","html_url":"https://github.com/Khan/KaTeX/pull/923","diff_url":"https://github.com/Khan/KaTeX/pull/923.diff","patch_url":"https://github.com/Khan/KaTeX/pull/923.patch"},"body":"Implemented `\\href` command in LaTeX hyperref package.\r\nIt seems that LaTeX simply ignores special commands for hyper-linking and processes spacing as usual.\r\nSince I don't make out how to simulate this spacing behaviour in KaTeX, I adopt the following strategy:\r\n\r\n1. If it has the only element, then use its math-type;\r\n2. if it has more than two elements, and the types of both ends of elements coincides, then use it as a class for the anchor tag;\r\n3. otherwise, we inject empty span-tag aside both ends of generated anchor tag, both with the same classes as the first and the last ones respectively."},"comment":{"url":"https://api.github.com/repos/Khan/KaTeX/issues/comments/346739709","html_url":"https://github.com/Khan/KaTeX/pull/923#issuecomment-346739709","issue_url":"https://api.github.com/repos/Khan/KaTeX/issues/923","id":346739709,"user":{"login":"kevinbarabash","id":1044413,"avatar_url":"https://avatars3.githubusercontent.com/u/1044413?v=4","gravatar_id":"","url":"https://api.github.com/users/kevinbarabash","html_url":"https://github.com/kevinbarabash","followers_url":"https://api.github.com/users/kevinbarabash/followers","following_url":"https://api.github.com/users/kevinbarabash/following{/other_user}","gists_url":"https://api.github.com/users/kevinbarabash/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinbarabash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinbarabash/subscriptions","organizations_url":"https://api.github.com/users/kevinbarabash/orgs","repos_url":"https://api.github.com/users/kevinbarabash/repos","events_url":"https://api.github.com/users/kevinbarabash/events{/privacy}","received_events_url":"https://api.github.com/users/kevinbarabash/received_events","type":"User","site_admin":false},"created_at":"2017-11-24T04:16:21Z","updated_at":"2017-11-24T04:16:21Z","author_association":"CONTRIBUTOR","body":"@konn I've reviewed `parseStringGroupWithBalancedBraces`, looks good.  I will merge this after the tests pass.  Sorry for taking so long with this."}}
{"actor":{"display_login":"kevinbarabash"}}