{"action":"created","issue":{"url":"https://api.github.com/repos/mattermost/mattermost-server/issues/8660","repository_url":"https://api.github.com/repos/mattermost/mattermost-server","labels_url":"https://api.github.com/repos/mattermost/mattermost-server/issues/8660/labels{/name}","comments_url":"https://api.github.com/repos/mattermost/mattermost-server/issues/8660/comments","events_url":"https://api.github.com/repos/mattermost/mattermost-server/issues/8660/events","html_url":"https://github.com/mattermost/mattermost-server/issues/8660","id":316915970,"number":8660,"title":"Text not rendered following latex block","user":{"login":"craigim","id":6438424,"avatar_url":"https://avatars2.githubusercontent.com/u/6438424?v=4","gravatar_id":"","url":"https://api.github.com/users/craigim","html_url":"https://github.com/craigim","followers_url":"https://api.github.com/users/craigim/followers","following_url":"https://api.github.com/users/craigim/following{/other_user}","gists_url":"https://api.github.com/users/craigim/gists{/gist_id}","starred_url":"https://api.github.com/users/craigim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craigim/subscriptions","organizations_url":"https://api.github.com/users/craigim/orgs","repos_url":"https://api.github.com/users/craigim/repos","events_url":"https://api.github.com/users/craigim/events{/privacy}","received_events_url":"https://api.github.com/users/craigim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-04-23T17:50:36Z","updated_at":"2018-04-30T17:15:24Z","closed_at":null,"author_association":"NONE","body":"Per Mattermost guidelines, GitHub issues are for bug reports: http://www.mattermost.org/filing-issues/\r\n\r\nFor troubleshooting see: http://forum.mattermost.org/.\r\nFor feature proposals see: http://www.mattermost.org/feature-requests/\r\n\r\nIf you've found a bug--something appears unintentional--please report using the following format: \r\n\r\n#### Summary\r\nText does not render following a latex block\r\n\r\n#### Steps to reproduce\r\nUsing Mattermost Team Edition version 4.8.1 with postgres database. I left a comment with the following code (not sure how to make the markdown not render here):\r\n\r\n---\r\n\r\nNote to all:\r\n```latex\r\n\\text{mean}(x) = \\text{median}(x)\r\n```\r\nonly for symmetric distributions (e.g. normal, Cauchy, Voigt). For instance\r\n```latex\r\n\\text{mean}(x^2) \\approx\\left(\\frac{9}{7}\\right)^3\\text{median}(x^2)\\approx 2.125 \\cdot\\text{median}(x^2)\r\n```\r\nbecause $`x^2`$ is not normally distributed, it is a $`\\chi^2_1`$ distribution which is not symmetric. This also holds true for many other distributions that we commonly deal with, such as log-normal and exponential.\r\n\r\n---\r\n\r\nWhen I posted the comment back on September 22, 2017 it rendered completely. Now when I view the comment, nothing appears after the first latex block (causing much confusion). Other code (i.e. c++ or matlab) does *not* exhibit this behavior. I've tried creating new comments and get the same results.\r\n\r\n#### Expected behavior\r\nAfter latex block, further text should render\r\n\r\n#### Observed behavior (that appears unintentional) \r\nScreenshot from the Mattermost desktop app (with identifying information blocked out). The view in Firefox is exactly the same. The code I pasted above was copied directly after choosing \"edit\" on that comment.\r\n\r\n![mattermostbugreport](https://user-images.githubusercontent.com/6438424/39143717-b4ed3bc2-46fc-11e8-89b6-f8994ee4c1c8.png)\r\n\r\nNote that this behavior does *not* occur after other code blocks, such as c++ or matlab."},"comment":{"url":"https://api.github.com/repos/mattermost/mattermost-server/issues/comments/385465661","html_url":"https://github.com/mattermost/mattermost-server/issues/8660#issuecomment-385465661","issue_url":"https://api.github.com/repos/mattermost/mattermost-server/issues/8660","id":385465661,"user":{"login":"craigim","id":6438424,"avatar_url":"https://avatars2.githubusercontent.com/u/6438424?v=4","gravatar_id":"","url":"https://api.github.com/users/craigim","html_url":"https://github.com/craigim","followers_url":"https://api.github.com/users/craigim/followers","following_url":"https://api.github.com/users/craigim/following{/other_user}","gists_url":"https://api.github.com/users/craigim/gists{/gist_id}","starred_url":"https://api.github.com/users/craigim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craigim/subscriptions","organizations_url":"https://api.github.com/users/craigim/orgs","repos_url":"https://api.github.com/users/craigim/repos","events_url":"https://api.github.com/users/craigim/events{/privacy}","received_events_url":"https://api.github.com/users/craigim/received_events","type":"User","site_admin":false},"created_at":"2018-04-30T17:15:24Z","updated_at":"2018-04-30T17:15:24Z","author_association":"NONE","body":"`~~~` didn't work for me (code still renders), but here it is with all back quotes replaced with normal single quotes instead (no contractions or possessives, so a search/replace will safely work to get back to valid markup):\r\n\r\n---\r\n\r\nNote to all:\r\n'''latex\r\n\\text{mean}(x) = \\text{median}(x)\r\n'''\r\nonly for symmetric distributions (e.g. normal, Cauchy, Voigt). For instance\r\n'''latex\r\n\\text{mean}(x^2) \\approx\\left(\\frac{9}{7}\\right)^3\\text{median}(x^2)\\approx 2.125 \\cdot\\text{median}(x^2)\r\n'''\r\nbecause $'x^2'$ is not normally distributed, it is a $'\\chi^2_1'$ distribution which is not symmetric. This also holds true for many other distributions that we commonly deal with, such as log-normal and exponential.\r\n\r\n---"}}
{"actor":{"display_login":"craigim"}}