{"action":"created","issue":{"url":"https://api.github.com/repos/ivarptr/yu-writer.site/issues/280","repository_url":"https://api.github.com/repos/ivarptr/yu-writer.site","labels_url":"https://api.github.com/repos/ivarptr/yu-writer.site/issues/280/labels{/name}","comments_url":"https://api.github.com/repos/ivarptr/yu-writer.site/issues/280/comments","events_url":"https://api.github.com/repos/ivarptr/yu-writer.site/issues/280/events","html_url":"https://github.com/ivarptr/yu-writer.site/issues/280","id":340499674,"node_id":"MDU6SXNzdWUzNDA0OTk2NzQ=","number":280,"title":"多行公式渲染不换行","user":{"login":"RonaldinhoL","id":1797392,"node_id":"MDQ6VXNlcjE3OTczOTI=","avatar_url":"https://avatars1.githubusercontent.com/u/1797392?v=4","gravatar_id":"","url":"https://api.github.com/users/RonaldinhoL","html_url":"https://github.com/RonaldinhoL","followers_url":"https://api.github.com/users/RonaldinhoL/followers","following_url":"https://api.github.com/users/RonaldinhoL/following{/other_user}","gists_url":"https://api.github.com/users/RonaldinhoL/gists{/gist_id}","starred_url":"https://api.github.com/users/RonaldinhoL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RonaldinhoL/subscriptions","organizations_url":"https://api.github.com/users/RonaldinhoL/orgs","repos_url":"https://api.github.com/users/RonaldinhoL/repos","events_url":"https://api.github.com/users/RonaldinhoL/events{/privacy}","received_events_url":"https://api.github.com/users/RonaldinhoL/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-12T06:01:44Z","updated_at":"2018-07-12T21:00:03Z","closed_at":null,"author_association":"NONE","body":"发现一个bug，0.52版的所有公式渲染都不换行了，都渲染在一行上面，比如下面这个公式\r\n$$\\begin{align}\r\nJ(\\theta) &= \\ln L(y|x;\\theta) \\\\\r\n&= \\sum_{j=1}^m \\ln \\left [ y^{(j)} h_\\theta(x^{(j)}) + （1- y^{(j)}）(1 - h_\\theta(x^{(j)})) \\right ] \\\\\r\n\\end{align}$$\r\n\r\n然后发现在设置里勾选 “启用单美元符号的行内公式” 以后渲染就会换行。\r\n这里是不是有bug，按说这个选项不应该影响多行公式的。\r\n"},"comment":{"url":"https://api.github.com/repos/ivarptr/yu-writer.site/issues/comments/404649060","html_url":"https://github.com/ivarptr/yu-writer.site/issues/280#issuecomment-404649060","issue_url":"https://api.github.com/repos/ivarptr/yu-writer.site/issues/280","id":404649060,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDY0OTA2MA==","user":{"login":"ivarptr","id":394223,"node_id":"MDQ6VXNlcjM5NDIyMw==","avatar_url":"https://avatars3.githubusercontent.com/u/394223?v=4","gravatar_id":"","url":"https://api.github.com/users/ivarptr","html_url":"https://github.com/ivarptr","followers_url":"https://api.github.com/users/ivarptr/followers","following_url":"https://api.github.com/users/ivarptr/following{/other_user}","gists_url":"https://api.github.com/users/ivarptr/gists{/gist_id}","starred_url":"https://api.github.com/users/ivarptr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivarptr/subscriptions","organizations_url":"https://api.github.com/users/ivarptr/orgs","repos_url":"https://api.github.com/users/ivarptr/repos","events_url":"https://api.github.com/users/ivarptr/events{/privacy}","received_events_url":"https://api.github.com/users/ivarptr/received_events","type":"User","site_admin":false},"created_at":"2018-07-12T21:00:03Z","updated_at":"2018-07-12T21:00:03Z","author_association":"OWNER","body":"@RonaldinhoL 是的，是一个 bug，原因是 markdown 解析器把公式文本先解析了一次，再传递给 mathjax 解析器，现已经修复，效果如下图。下次更新应该没问题了。谢谢反馈!\r\n\r\n![default](https://user-images.githubusercontent.com/394223/42659004-7ab1eed4-8659-11e8-81e8-5e1e7db07194.PNG)\r\n\r\nps1 勾选单美元符号那个选项完全是意外的副作用，哈哈哈\r\nps2 换行好像要用两个反斜杠了 `\\\\`"}}
{"actor":{"display_login":"ivarptr"}}