{"action":"created","issue":{"url":"https://api.github.com/repos/tiarno/plastex/issues/17","labels_url":"https://api.github.com/repos/tiarno/plastex/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/tiarno/plastex/issues/17/comments","events_url":"https://api.github.com/repos/tiarno/plastex/issues/17/events","html_url":"https://github.com/tiarno/plastex/pull/17","id":105825784,"number":17,"title":"support nested maths in MathShift","user":{"login":"mungerd","id":315290,"avatar_url":"https://avatars.githubusercontent.com/u/315290?v=3","gravatar_id":"","url":"https://api.github.com/users/mungerd","html_url":"https://github.com/mungerd","followers_url":"https://api.github.com/users/mungerd/followers","following_url":"https://api.github.com/users/mungerd/following{/other_user}","gists_url":"https://api.github.com/users/mungerd/gists{/gist_id}","starred_url":"https://api.github.com/users/mungerd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mungerd/subscriptions","organizations_url":"https://api.github.com/users/mungerd/orgs","repos_url":"https://api.github.com/users/mungerd/repos","events_url":"https://api.github.com/users/mungerd/events{/privacy}","received_events_url":"https://api.github.com/users/mungerd/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-10T14:48:18Z","updated_at":"2015-09-10T18:51:47Z","closed_at":"2015-09-10T18:51:47Z","pull_request":{"url":"https://api.github.com/repos/tiarno/plastex/pulls/17","html_url":"https://github.com/tiarno/plastex/pull/17","diff_url":"https://github.com/tiarno/plastex/pull/17.diff","patch_url":"https://github.com/tiarno/plastex/pull/17.patch"},"body":"This is useful when using commands that turn off math mode, such as `\\cases` or AMS's `\\text`.\r\n\r\nThe old implementation would consider the current MathShift command as a closing one whenever there already was an open math environment.  This led to a bug in\r\n`$$ x = \\text{$x$} $$`\r\nas well as in\r\n`$$ x = \\cases{x & if $x=x$} $$`\r\n\r\nThe new implementation regards the current MathShift command as a closing command *only if it matches the last opening command*.  This should not break the parsing of correct LaTeX code.\r\n"},"comment":{"url":"https://api.github.com/repos/tiarno/plastex/issues/comments/139343340","html_url":"https://github.com/tiarno/plastex/pull/17#issuecomment-139343340","issue_url":"https://api.github.com/repos/tiarno/plastex/issues/17","id":139343340,"user":{"login":"mungerd","id":315290,"avatar_url":"https://avatars.githubusercontent.com/u/315290?v=3","gravatar_id":"","url":"https://api.github.com/users/mungerd","html_url":"https://github.com/mungerd","followers_url":"https://api.github.com/users/mungerd/followers","following_url":"https://api.github.com/users/mungerd/following{/other_user}","gists_url":"https://api.github.com/users/mungerd/gists{/gist_id}","starred_url":"https://api.github.com/users/mungerd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mungerd/subscriptions","organizations_url":"https://api.github.com/users/mungerd/orgs","repos_url":"https://api.github.com/users/mungerd/repos","events_url":"https://api.github.com/users/mungerd/events{/privacy}","received_events_url":"https://api.github.com/users/mungerd/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T18:51:47Z","updated_at":"2015-09-10T18:51:47Z","body":"Sorry, this breaks something I don't yet understand.  I'm going to cancel this."}}