{"action":"opened","issue":{"url":"https://api.github.com/repos/jean-michel-gonet/dokuwiki-plugin-latexport/issues/12","repository_url":"https://api.github.com/repos/jean-michel-gonet/dokuwiki-plugin-latexport","labels_url":"https://api.github.com/repos/jean-michel-gonet/dokuwiki-plugin-latexport/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/jean-michel-gonet/dokuwiki-plugin-latexport/issues/12/comments","events_url":"https://api.github.com/repos/jean-michel-gonet/dokuwiki-plugin-latexport/issues/12/events","html_url":"https://github.com/jean-michel-gonet/dokuwiki-plugin-latexport/issues/12","id":254718136,"number":12,"title":"Add support for latexport in Mathjax","user":{"login":"jean-michel-gonet","id":3509079,"avatar_url":"https://avatars0.githubusercontent.com/u/3509079?v=4","gravatar_id":"","url":"https://api.github.com/users/jean-michel-gonet","html_url":"https://github.com/jean-michel-gonet","followers_url":"https://api.github.com/users/jean-michel-gonet/followers","following_url":"https://api.github.com/users/jean-michel-gonet/following{/other_user}","gists_url":"https://api.github.com/users/jean-michel-gonet/gists{/gist_id}","starred_url":"https://api.github.com/users/jean-michel-gonet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jean-michel-gonet/subscriptions","organizations_url":"https://api.github.com/users/jean-michel-gonet/orgs","repos_url":"https://api.github.com/users/jean-michel-gonet/repos","events_url":"https://api.github.com/users/jean-michel-gonet/events{/privacy}","received_events_url":"https://api.github.com/users/jean-michel-gonet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-01T18:27:19Z","updated_at":"2017-09-01T18:27:19Z","closed_at":null,"author_association":"OWNER","body":"# Why\r\n- Because Mathjax introduces new syntax for TeX mathematics.\r\n\r\n# Condition of satisfaction\r\n- Mathjax has to call Latexport renderer with the TeX content.\r\n\r\nHere is the code snippet that goes in the `mathjax/syntax/protecttex.php` file:\r\n```\r\n    public function render($mode, Doku_Renderer $renderer, $data) {\r\n        ...\r\n        if ($mode == 'latexport') {\r\n                $renderer->mathjax_content($data);\r\n        }\r\n        ...\r\n        return false;\r\n    }\r\n\r\n```"}}
{"actor":{"display_login":"jean-michel-gonet"}}