{"action":"created","issue":{"url":"https://api.github.com/repos/Khan/engblog/issues/34","labels_url":"https://api.github.com/repos/Khan/engblog/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/Khan/engblog/issues/34/comments","events_url":"https://api.github.com/repos/Khan/engblog/issues/34/events","html_url":"https://github.com/Khan/engblog/pull/34","id":103753060,"number":34,"title":"Add support for stylesheets, post-article scripts","user":{"login":"WChargin","id":4317806,"avatar_url":"https://avatars.githubusercontent.com/u/4317806?v=3","gravatar_id":"","url":"https://api.github.com/users/WChargin","html_url":"https://github.com/WChargin","followers_url":"https://api.github.com/users/WChargin/followers","following_url":"https://api.github.com/users/WChargin/following{/other_user}","gists_url":"https://api.github.com/users/WChargin/gists{/gist_id}","starred_url":"https://api.github.com/users/WChargin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WChargin/subscriptions","organizations_url":"https://api.github.com/users/WChargin/orgs","repos_url":"https://api.github.com/users/WChargin/repos","events_url":"https://api.github.com/users/WChargin/events{/privacy}","received_events_url":"https://api.github.com/users/WChargin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-28T16:41:10Z","updated_at":"2015-08-28T16:52:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Khan/engblog/pulls/34","html_url":"https://github.com/Khan/engblog/pull/34","diff_url":"https://github.com/Khan/engblog/pull/34.diff","patch_url":"https://github.com/Khan/engblog/pull/34.patch"},"body":"Summary:\r\nPull request #33 adds support for asynchronous scripts, which is great!\r\nFor full KaTeX support, though, we need to pull in CSS and fonts;\r\nto auto-render, we need to wait until the DOM is loaded.\r\nThis patch adds a few more fields to the frontmatter that do just that.\r\n\r\nIt also adds a simple KaTeX entry point,\r\nboth for testing that this works and for actual usage.\r\n\r\nIt doesn't include font support,\r\nbecause I don't think that'd play nice with the CSS inlining we have.\r\n\r\nDepends on #33.\r\n\r\nTest Plan:\r\n\r\nSample input:\r\n```\r\ntitle: Testing math\r\npublished_on: August 28, 2015\r\nauthor: R. J. Drofnats\r\nteam: Web Frontend\r\nasync_scripts: [\"https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.3.0/katex.min.js\", \"https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.3.0/contrib/auto-render.min.js\"]\r\nstylesheets: [\"https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.3.0/katex.min.css\"]\r\npostcontent_scripts: [\"/javascript/katex-entry.js\"]\r\n...\r\n\r\nMany people know that $A = \\pi r^2$.\r\nLeonhard Euler came to fame for showing that $$\\sum_{n=1}^{\\infty} \\frac{1}{n^2} = \\frac{\\pi^2}{6},$$\r\nusing novel techniques whose proof would follow much later.\r\n```\r\n\r\nSample output:\r\n> ![Sample output](https://cloud.githubusercontent.com/assets/4317806/9551838/8cbd2dc8-4d68-11e5-9f8f-4f35d3797ab1.png)"},"comment":{"url":"https://api.github.com/repos/Khan/engblog/issues/comments/135830920","html_url":"https://github.com/Khan/engblog/pull/34#issuecomment-135830920","issue_url":"https://api.github.com/repos/Khan/engblog/issues/34","id":135830920,"user":{"login":"WChargin","id":4317806,"avatar_url":"https://avatars.githubusercontent.com/u/4317806?v=3","gravatar_id":"","url":"https://api.github.com/users/WChargin","html_url":"https://github.com/WChargin","followers_url":"https://api.github.com/users/WChargin/followers","following_url":"https://api.github.com/users/WChargin/following{/other_user}","gists_url":"https://api.github.com/users/WChargin/gists{/gist_id}","starred_url":"https://api.github.com/users/WChargin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WChargin/subscriptions","organizations_url":"https://api.github.com/users/WChargin/orgs","repos_url":"https://api.github.com/users/WChargin/repos","events_url":"https://api.github.com/users/WChargin/events{/privacy}","received_events_url":"https://api.github.com/users/WChargin/received_events","type":"User","site_admin":false},"created_at":"2015-08-28T16:52:23Z","updated_at":"2015-08-28T16:52:23Z","body":"@xymostech Do you know where I can get a hosted copy of a later version of KaTeX? The cdnjs version is at 0.3.0, which doesn't support `array` :(\r\n\r\nI could grab it from http://khan.github.io/KaTeX/bower_components/katex/dist/katex.min.css but I don't know if that's really allowed."}}