{"action":"created","issue":{"url":"https://api.github.com/repos/jupyter/nbconvert/issues/47","repository_url":"https://api.github.com/repos/jupyter/nbconvert","labels_url":"https://api.github.com/repos/jupyter/nbconvert/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/jupyter/nbconvert/issues/47/comments","events_url":"https://api.github.com/repos/jupyter/nbconvert/issues/47/events","html_url":"https://github.com/jupyter/nbconvert/issues/47","id":89680270,"number":47,"title":" convert to RST - cell magics in code blocks?","user":{"login":"balacuit","id":438702,"avatar_url":"https://avatars.githubusercontent.com/u/438702?v=3","gravatar_id":"","url":"https://api.github.com/users/balacuit","html_url":"https://github.com/balacuit","followers_url":"https://api.github.com/users/balacuit/followers","following_url":"https://api.github.com/users/balacuit/following{/other_user}","gists_url":"https://api.github.com/users/balacuit/gists{/gist_id}","starred_url":"https://api.github.com/users/balacuit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balacuit/subscriptions","organizations_url":"https://api.github.com/users/balacuit/orgs","repos_url":"https://api.github.com/users/balacuit/repos","events_url":"https://api.github.com/users/balacuit/events{/privacy}","received_events_url":"https://api.github.com/users/balacuit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/jupyter/nbconvert/milestones/1","html_url":"https://github.com/jupyter/nbconvert/milestones/no%20action","labels_url":"https://api.github.com/repos/jupyter/nbconvert/milestones/1/labels","id":1063961,"number":1,"title":"no action","description":null,"creator":{"login":"minrk","id":151929,"avatar_url":"https://avatars.githubusercontent.com/u/151929?v=3","gravatar_id":"","url":"https://api.github.com/users/minrk","html_url":"https://github.com/minrk","followers_url":"https://api.github.com/users/minrk/followers","following_url":"https://api.github.com/users/minrk/following{/other_user}","gists_url":"https://api.github.com/users/minrk/gists{/gist_id}","starred_url":"https://api.github.com/users/minrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minrk/subscriptions","organizations_url":"https://api.github.com/users/minrk/orgs","repos_url":"https://api.github.com/users/minrk/repos","events_url":"https://api.github.com/users/minrk/events{/privacy}","received_events_url":"https://api.github.com/users/minrk/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":55,"state":"open","created_at":"2015-04-12T18:45:58Z","updated_at":"2016-08-18T08:56:11Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-06-19T23:17:24Z","updated_at":"2016-08-18T11:27:18Z","closed_at":null,"body":"When converting a notebook to RST, code blocks with magics are still converted into python code blocks.  For example, this:\r\n``` python\r\n%%bash\r\ngit checkout master\r\n```\r\n... gets translated to this:\r\n```rst\r\n.. code:: python\r\n    %%bash\r\n    git checkout master\r\n```\r\nShouldn't it be converted to recognize the language specific cell magics, like the following?\r\n```rst\r\n.. code:: bash\r\n    git checkout master\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jupyter/nbconvert/issues/comments/240696360","html_url":"https://github.com/jupyter/nbconvert/issues/47#issuecomment-240696360","issue_url":"https://api.github.com/repos/jupyter/nbconvert/issues/47","id":240696360,"user":{"login":"takluyver","id":327925,"avatar_url":"https://avatars.githubusercontent.com/u/327925?v=3","gravatar_id":"","url":"https://api.github.com/users/takluyver","html_url":"https://github.com/takluyver","followers_url":"https://api.github.com/users/takluyver/followers","following_url":"https://api.github.com/users/takluyver/following{/other_user}","gists_url":"https://api.github.com/users/takluyver/gists{/gist_id}","starred_url":"https://api.github.com/users/takluyver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takluyver/subscriptions","organizations_url":"https://api.github.com/users/takluyver/orgs","repos_url":"https://api.github.com/users/takluyver/repos","events_url":"https://api.github.com/users/takluyver/events{/privacy}","received_events_url":"https://api.github.com/users/takluyver/received_events","type":"User","site_admin":false},"created_at":"2016-08-18T11:27:18Z","updated_at":"2016-08-18T11:27:18Z","body":"One possibility for the latter part is that we could specify the language as IPython, relying on our own [lexers](https://github.com/ipython/ipython/blob/master/IPython/lib/lexers.py) to deal with highlighting magics. I don't know how well they do currently with cell magics using other languages."}}
{"actor":{"display_login":"takluyver"}}