{"action":"created","issue":{"url":"https://api.github.com/repos/sagemath/sagenb/issues/350","labels_url":"https://api.github.com/repos/sagemath/sagenb/issues/350/labels{/name}","comments_url":"https://api.github.com/repos/sagemath/sagenb/issues/350/comments","events_url":"https://api.github.com/repos/sagemath/sagenb/issues/350/events","html_url":"https://github.com/sagemath/sagenb/pull/350","id":110124461,"number":350,"title":"Do not wrap HTML output in <pre>","user":{"login":"novoselt","id":1993227,"avatar_url":"https://avatars.githubusercontent.com/u/1993227?v=3","gravatar_id":"","url":"https://api.github.com/users/novoselt","html_url":"https://github.com/novoselt","followers_url":"https://api.github.com/users/novoselt/followers","following_url":"https://api.github.com/users/novoselt/following{/other_user}","gists_url":"https://api.github.com/users/novoselt/gists{/gist_id}","starred_url":"https://api.github.com/users/novoselt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/novoselt/subscriptions","organizations_url":"https://api.github.com/users/novoselt/orgs","repos_url":"https://api.github.com/users/novoselt/repos","events_url":"https://api.github.com/users/novoselt/events{/privacy}","received_events_url":"https://api.github.com/users/novoselt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sagemath/sagenb/labels/Major","name":"Major","color":"eb6420"},{"url":"https://api.github.com/repos/sagemath/sagenb/labels/Needs%20Review","name":"Needs Review","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2015-10-06T23:41:53Z","updated_at":"2015-11-23T15:32:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sagemath/sagenb/pulls/350","html_url":"https://github.com/sagemath/sagenb/pull/350","diff_url":"https://github.com/sagemath/sagenb/pull/350.diff","patch_url":"https://github.com/sagemath/sagenb/pull/350.patch"},"body":"Currently HTML from html command is inserted into a `<pre>` block which means that you actually don't see real HTML output corresponding to your code. It also leads to extra dances for MathJax, we have our own parser for $ that replaces them with `<script>` tags. And I could not figure out how to turn on processing of environments. (My use case here: output a sequence \"explanation formula explanation formula ...\" which works way better in MathJax and LaTeX if each formula is a separate formula, rather than combining everything into a single math object.)\r\n\r\nThe change here is to wrap into `<pre>` every block which is NOT html - then we mostly have old behaviour, but HTML processing is now sensible and consistent with cell and cloud interfaces. (In particular, math environments are processed.)\r\n\r\nAttaching sample output for before and after.\r\n![before](https://cloud.githubusercontent.com/assets/1993227/10325735/518bca54-6c51-11e5-862f-b196814a15a8.png)\r\n![after](https://cloud.githubusercontent.com/assets/1993227/10325737/575b4c7a-6c51-11e5-9823-884dea06f2d1.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/sagemath/sagenb/issues/comments/158970032","html_url":"https://github.com/sagemath/sagenb/pull/350#issuecomment-158970032","issue_url":"https://api.github.com/repos/sagemath/sagenb/issues/350","id":158970032,"user":{"login":"kcrisman","id":1775728,"avatar_url":"https://avatars.githubusercontent.com/u/1775728?v=3","gravatar_id":"","url":"https://api.github.com/users/kcrisman","html_url":"https://github.com/kcrisman","followers_url":"https://api.github.com/users/kcrisman/followers","following_url":"https://api.github.com/users/kcrisman/following{/other_user}","gists_url":"https://api.github.com/users/kcrisman/gists{/gist_id}","starred_url":"https://api.github.com/users/kcrisman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kcrisman/subscriptions","organizations_url":"https://api.github.com/users/kcrisman/orgs","repos_url":"https://api.github.com/users/kcrisman/repos","events_url":"https://api.github.com/users/kcrisman/events{/privacy}","received_events_url":"https://api.github.com/users/kcrisman/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T15:32:09Z","updated_at":"2015-11-23T15:32:09Z","body":"Okay, thanks for that update!"}}