{"action":"created","issue":{"url":"https://api.github.com/repos/mattermost/platform/issues/1351","labels_url":"https://api.github.com/repos/mattermost/platform/issues/1351/labels{/name}","comments_url":"https://api.github.com/repos/mattermost/platform/issues/1351/comments","events_url":"https://api.github.com/repos/mattermost/platform/issues/1351/events","html_url":"https://github.com/mattermost/platform/pull/1351","id":115622783,"number":1351,"title":"Add latex support","user":{"login":"florianorben","id":1024005,"avatar_url":"https://avatars.githubusercontent.com/u/1024005?v=3","gravatar_id":"","url":"https://api.github.com/users/florianorben","html_url":"https://github.com/florianorben","followers_url":"https://api.github.com/users/florianorben/followers","following_url":"https://api.github.com/users/florianorben/following{/other_user}","gists_url":"https://api.github.com/users/florianorben/gists{/gist_id}","starred_url":"https://api.github.com/users/florianorben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/florianorben/subscriptions","organizations_url":"https://api.github.com/users/florianorben/orgs","repos_url":"https://api.github.com/users/florianorben/repos","events_url":"https://api.github.com/users/florianorben/events{/privacy}","received_events_url":"https://api.github.com/users/florianorben/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mattermost/platform/labels/Needs%20Review","name":"Needs Review","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/mattermost/platform/milestones/7","html_url":"https://github.com/mattermost/platform/milestones/v1.3.0","labels_url":"https://api.github.com/repos/mattermost/platform/milestones/7/labels","id":1389557,"number":7,"title":"v1.3.0","description":"","creator":{"login":"crspeller","id":3191642,"avatar_url":"https://avatars.githubusercontent.com/u/3191642?v=3","gravatar_id":"","url":"https://api.github.com/users/crspeller","html_url":"https://github.com/crspeller","followers_url":"https://api.github.com/users/crspeller/followers","following_url":"https://api.github.com/users/crspeller/following{/other_user}","gists_url":"https://api.github.com/users/crspeller/gists{/gist_id}","starred_url":"https://api.github.com/users/crspeller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crspeller/subscriptions","organizations_url":"https://api.github.com/users/crspeller/orgs","repos_url":"https://api.github.com/users/crspeller/repos","events_url":"https://api.github.com/users/crspeller/events{/privacy}","received_events_url":"https://api.github.com/users/crspeller/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":33,"state":"open","created_at":"2015-11-02T18:18:35Z","updated_at":"2015-11-14T16:52:29Z","due_on":null,"closed_at":null},"comments":11,"created_at":"2015-11-07T01:29:37Z","updated_at":"2015-11-15T13:57:27Z","closed_at":"2015-11-10T22:27:52Z","pull_request":{"url":"https://api.github.com/repos/mattermost/platform/pulls/1351","html_url":"https://github.com/mattermost/platform/pull/1351","diff_url":"https://github.com/mattermost/platform/pull/1351.diff","patch_url":"https://github.com/mattermost/platform/pull/1351.patch"},"body":"Adds latex highlighting support via https://www.npmjs.com/package/katex\r\nas requested in\r\nhttps://mattermost.uservoice.com/forums/306457-general/suggestions/10160757-add-latex-support\r\n\r\nThought this was a pretty cool and unique feature over competitors, so why not :)\r\nHighlighting is triggered by passing `tex` (or `latex`) as the language to a code block\r\n\r\n![tex](https://cloud.githubusercontent.com/assets/1024005/11012601/a863297c-84f6-11e5-9a63-b3945d50e5c0.png)\r\n\r\nExample:\r\n```\r\n ````tex\r\nf(x) = \\int_{-\\infty}^\\infty\r\n    \\hat f(\\xi)\\,e^{2 \\pi i \\xi x}\r\n    \\,d\\xi\r\n ````        ---(remove me otherwise breaks highlight)\r\n```"},"comment":{"url":"https://api.github.com/repos/mattermost/platform/issues/comments/156813494","html_url":"https://github.com/mattermost/platform/pull/1351#issuecomment-156813494","issue_url":"https://api.github.com/repos/mattermost/platform/issues/1351","id":156813494,"user":{"login":"akhmerov","id":2069677,"avatar_url":"https://avatars.githubusercontent.com/u/2069677?v=3","gravatar_id":"","url":"https://api.github.com/users/akhmerov","html_url":"https://github.com/akhmerov","followers_url":"https://api.github.com/users/akhmerov/followers","following_url":"https://api.github.com/users/akhmerov/following{/other_user}","gists_url":"https://api.github.com/users/akhmerov/gists{/gist_id}","starred_url":"https://api.github.com/users/akhmerov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akhmerov/subscriptions","organizations_url":"https://api.github.com/users/akhmerov/orgs","repos_url":"https://api.github.com/users/akhmerov/repos","events_url":"https://api.github.com/users/akhmerov/events{/privacy}","received_events_url":"https://api.github.com/users/akhmerov/received_events","type":"User","site_admin":false},"created_at":"2015-11-15T13:57:26Z","updated_at":"2015-11-15T13:57:26Z","body":"I didn't realize there was no latex highlighting before.\r\n\r\nI'm slightly concerned by this PR breaking markdown syntax as opposed to extending it — triple backquotes aren't *just* code blocks anymore. Would it be possible to use the more common latex delimiters like `$ $` + `$$ $$` or `\\( \\)` + `\\[ \\]`? Also is it correct that the PR implements no syntax for inline math?\r\n\r\nEither way, these are just minor details, I'm super excited to see latex support and looking forward to 1.3.0."}}