{"action":"created","issue":{"url":"https://api.github.com/repos/spf13/hugo/issues/1666","repository_url":"https://api.github.com/repos/spf13/hugo","labels_url":"https://api.github.com/repos/spf13/hugo/issues/1666/labels{/name}","comments_url":"https://api.github.com/repos/spf13/hugo/issues/1666/comments","events_url":"https://api.github.com/repos/spf13/hugo/issues/1666/events","html_url":"https://github.com/spf13/hugo/issues/1666","id":120098551,"number":1666,"title":"Mention Mmark math (MathJax/KaTeX) support in docs","user":{"login":"oblitum","id":1269815,"avatar_url":"https://avatars.githubusercontent.com/u/1269815?v=3","gravatar_id":"","url":"https://api.github.com/users/oblitum","html_url":"https://github.com/oblitum","followers_url":"https://api.github.com/users/oblitum/followers","following_url":"https://api.github.com/users/oblitum/following{/other_user}","gists_url":"https://api.github.com/users/oblitum/gists{/gist_id}","starred_url":"https://api.github.com/users/oblitum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oblitum/subscriptions","organizations_url":"https://api.github.com/users/oblitum/orgs","repos_url":"https://api.github.com/users/oblitum/repos","events_url":"https://api.github.com/users/oblitum/events{/privacy}","received_events_url":"https://api.github.com/users/oblitum/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spf13/hugo/labels/kind/docs","name":"kind/docs","color":"A37049"},{"url":"https://api.github.com/repos/spf13/hugo/labels/status/please%20contribute","name":"status/please contribute","color":"B3E235"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-12-03T05:41:55Z","updated_at":"2016-06-10T23:06:36Z","closed_at":null,"body":"Duplicating discussion here, since it looks like feasible through Mmark, which has been adopted recently.\r\n\r\n- https://discuss.gohugo.io/t/mathjax-and-katex-support/2205\r\n\r\nFrom Mmark README:\r\n\r\n> *   **Math support**, use `$$` as the delimiter. If the math is part of a paragraph it will\r\n     be displayed inline, if the entire paragraph consists out of math it considered display\r\n     math. No attempt is made to parse what is between the `$$`.\r\n\r\nIs this already working? What are the steps to use Mmark and have this enabled?\r\n\r\nIf it's OK for being used, I guess the official hugo docs about MathJax support could be updated with this information.\r\n\r\nIf it's not working, I'd propose for the issue to keep open (in case it's not a \"won't fix\") to target enabling it for Mmark."},"comment":{"url":"https://api.github.com/repos/spf13/hugo/issues/comments/225316394","html_url":"https://github.com/spf13/hugo/issues/1666#issuecomment-225316394","issue_url":"https://api.github.com/repos/spf13/hugo/issues/1666","id":225316394,"user":{"login":"senykam","id":16496231,"avatar_url":"https://avatars.githubusercontent.com/u/16496231?v=3","gravatar_id":"","url":"https://api.github.com/users/senykam","html_url":"https://github.com/senykam","followers_url":"https://api.github.com/users/senykam/followers","following_url":"https://api.github.com/users/senykam/following{/other_user}","gists_url":"https://api.github.com/users/senykam/gists{/gist_id}","starred_url":"https://api.github.com/users/senykam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/senykam/subscriptions","organizations_url":"https://api.github.com/users/senykam/orgs","repos_url":"https://api.github.com/users/senykam/repos","events_url":"https://api.github.com/users/senykam/events{/privacy}","received_events_url":"https://api.github.com/users/senykam/received_events","type":"User","site_admin":false},"created_at":"2016-06-10T23:06:36Z","updated_at":"2016-06-10T23:06:36Z","body":"Got Hugo working with Mmark and Mathjax. The only issue that came up was with display-mode equations and with references. The problem was the following from the Hugo docs: \r\n```\r\n<script type=\"text/x-mathjax-config\">\r\nMathJax.Hub.Config({\r\n  tex2jax: {\r\n    inlineMath: [['$','$'], ['\\\\(','\\\\)']],\r\n    displayMath: [['$$','$$'], ['\\[','\\]']],\r\n    processEscapes: true,\r\n    processEnvironments: true,\r\n    skipTags: ['script', 'noscript', 'style', 'textarea', 'pre'],\r\n    TeX: { equationNumbers: { autoNumber: \"AMS\" },\r\n         extensions: [\"AMSmath.js\", \"AMSsymbols.js\"] }\r\n  }\r\n});\r\n</script>\r\n```\r\nThis makes Mathjax interpret `[...]` blocks as display-mode equations whereas Mmark outputs `\\[...\\]` blocks for display-mode equations. \r\n\r\nTo fix use `displayMath: [['$$','$$'], ['\\\\[','\\\\]']]` above"}}
{"actor":{"display_login":"senykam"}}