{"action":"created","issue":{"url":"https://api.github.com/repos/ipython-contrib/IPython-notebook-extensions/issues/299","labels_url":"https://api.github.com/repos/ipython-contrib/IPython-notebook-extensions/issues/299/labels{/name}","comments_url":"https://api.github.com/repos/ipython-contrib/IPython-notebook-extensions/issues/299/comments","events_url":"https://api.github.com/repos/ipython-contrib/IPython-notebook-extensions/issues/299/events","html_url":"https://github.com/ipython-contrib/IPython-notebook-extensions/issues/299","id":106233323,"number":299,"title":"python-markdown messes up custom setting of the mathjax hub","user":{"login":"wllmtrng","id":1335855,"avatar_url":"https://avatars.githubusercontent.com/u/1335855?v=3","gravatar_id":"","url":"https://api.github.com/users/wllmtrng","html_url":"https://github.com/wllmtrng","followers_url":"https://api.github.com/users/wllmtrng/followers","following_url":"https://api.github.com/users/wllmtrng/following{/other_user}","gists_url":"https://api.github.com/users/wllmtrng/gists{/gist_id}","starred_url":"https://api.github.com/users/wllmtrng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wllmtrng/subscriptions","organizations_url":"https://api.github.com/users/wllmtrng/orgs","repos_url":"https://api.github.com/users/wllmtrng/repos","events_url":"https://api.github.com/users/wllmtrng/events{/privacy}","received_events_url":"https://api.github.com/users/wllmtrng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-13T18:45:48Z","updated_at":"2015-09-14T19:38:45Z","closed_at":null,"body":"The following issue was discovered using ipython 4.0.0 and the latest commit on the master branch for Ipython-notebook-extensions\r\n\r\nFor my particular case, the enabling of the python-markdown feature forces the alignment of mathJax  \"$$\" calls to be center aligned, even when MathJax is reconfigured to be left aligned in javascript:\r\n\r\n```html\r\n%%html\r\n<script>\r\n    MathJax.Hub.Config({\r\n                        TeX: {\r\n                           extensions: [\"AMSmath.js\"]\r\n                           },\r\n                tex2jax: {\r\n                    inlineMath: [ ['$','$'], [\"\\\\(\",\"\\\\)\"] ],\r\n                    displayMath: [ ['$$','$$'], [\"\\\\[\",\"\\\\]\"] ]\r\n                },\r\n                displayAlign: 'left', // Change this to 'center' to center equations.\r\n                displayIndent: \"4em\"\r\n        });\r\n</script>\r\n```\r\n\r\n## Here is a sample test case:\r\n<img width=\"1133\" alt=\"screen shot 2015-09-13 at 11 32 59 am\" src=\"https://cloud.githubusercontent.com/assets/1335855/9838189/90ea9066-5a0b-11e5-8520-695a9686403c.png\">\r\n\r\n## With python markdown disabled, the MathJax will correctly display left aligned with 4em indent:\r\n<img width=\"1129\" alt=\"screen shot 2015-09-13 at 11 33 53 am\" src=\"https://cloud.githubusercontent.com/assets/1335855/9838193/ac0b4818-5a0b-11e5-8cc0-1a6d8623ddb8.png\">\r\n\r\n## With python markdown enabled, the MathJax will incorrectly be displayed as center aligned:\r\n<img width=\"903\" alt=\"screen shot 2015-09-13 at 11 42 15 am\" src=\"https://cloud.githubusercontent.com/assets/1335855/9838218/8d123736-5a0c-11e5-8ef9-35b9631a878f.png\">\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ipython-contrib/IPython-notebook-extensions/issues/comments/140185608","html_url":"https://github.com/ipython-contrib/IPython-notebook-extensions/issues/299#issuecomment-140185608","issue_url":"https://api.github.com/repos/ipython-contrib/IPython-notebook-extensions/issues/299","id":140185608,"user":{"login":"juhasch","id":2445216,"avatar_url":"https://avatars.githubusercontent.com/u/2445216?v=3","gravatar_id":"","url":"https://api.github.com/users/juhasch","html_url":"https://github.com/juhasch","followers_url":"https://api.github.com/users/juhasch/followers","following_url":"https://api.github.com/users/juhasch/following{/other_user}","gists_url":"https://api.github.com/users/juhasch/gists{/gist_id}","starred_url":"https://api.github.com/users/juhasch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juhasch/subscriptions","organizations_url":"https://api.github.com/users/juhasch/orgs","repos_url":"https://api.github.com/users/juhasch/repos","events_url":"https://api.github.com/users/juhasch/events{/privacy}","received_events_url":"https://api.github.com/users/juhasch/received_events","type":"User","site_admin":false},"created_at":"2015-09-14T19:38:45Z","updated_at":"2015-09-14T19:38:45Z","body":"MathJax rendering is a little tricky. I found something that causes the behavior you see.\r\nThe extension changes the html contents even if not necessary and does not call MathJax to render it.\r\nShould be fixed now.\r\n\r\nStill don't know why only sometimes the MathJax configuration seems to work."}}