{"id":13399692,"url":"https://github.com/KaTeX/KaTeX","last_synced_at":"2025-03-14T04:31:55.767Z","repository":{"id":9345695,"uuid":"11195700","full_name":"KaTeX/KaTeX","owner":"KaTeX","description":"Fast math typesetting for the web.","archived":false,"fork":false,"pushed_at":"2025-03-08T18:03:25.000Z","size":87242,"stargazers_count":18793,"open_issues_count":422,"forks_count":1207,"subscribers_count":283,"default_branch":"main","last_synced_at":"2025-03-10T21:33:55.096Z","etag":null,"topics":["javascript","katex","latex","math","math-typesetting"],"latest_commit_sha":null,"homepage":"https://katex.org","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KaTeX.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"docs/security.md","support":"docs/support_table.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"KaTeX","open_collective":"katex"}},"created_at":"2013-07-05T09:01:54.000Z","updated_at":"2025-03-10T21:07:32.000Z","dependencies_parsed_at":"2023-09-25T02:11:48.122Z","dependency_job_id":"e5aca660-46ec-445a-9c2a-34c2cb909ff7","html_url":"https://github.com/KaTeX/KaTeX","commit_stats":{"total_commits":2057,"total_committers":171,"mean_commits":"12.029239766081872","dds":0.7277588721438989,"last_synced_commit":"f93464644419ef0057cc5b314f81e439f1242935"},"previous_names":["khan/katex"],"tags_count":87,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KaTeX%2FKaTeX","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KaTeX%2FKaTeX/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KaTeX%2FKaTeX/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KaTeX%2FKaTeX/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KaTeX","download_url":"https://codeload.github.com/KaTeX/KaTeX/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242989233,"owners_count":20217746,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","katex","latex","math","math-typesetting"],"created_at":"2024-07-30T19:00:41.481Z","updated_at":"2025-03-14T04:31:50.750Z","avatar_url":"https://github.com/KaTeX.png","language":"JavaScript","readme":"\u003ch1\u003e\u003ca href=\"https://katex.org/\"\u003e\n  \u003cpicture\u003e\n    \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://katex.org/img/katex-logo.svg\"\u003e\n    \u003cimg alt=\"KaTeX\" width=130 src=\"https://katex.org/img/katex-logo-black.svg\"\u003e\n  \u003c/picture\u003e\n\u003c/a\u003e\u003c/h1\u003e\n\n[![npm](https://img.shields.io/npm/v/katex.svg)](https://www.npmjs.com/package/katex)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n[![CI](https://github.com/KaTeX/KaTeX/workflows/CI/badge.svg?branch=main\u0026event=push)](https://github.com/KaTeX/KaTeX/actions?query=workflow%3ACI)\n[![codecov](https://codecov.io/gh/KaTeX/KaTeX/branch/main/graph/badge.svg)](https://codecov.io/gh/KaTeX/KaTeX)\n[![Discussions](https://img.shields.io/badge/Discussions-join-brightgreen)](https://github.com/KaTeX/KaTeX/discussions)\n[![jsDelivr](https://data.jsdelivr.com/v1/package/npm/katex/badge?style=rounded)](https://www.jsdelivr.com/package/npm/katex)\n![katex.min.js size](https://img.badgesize.io/https://unpkg.com/katex/dist/katex.min.js?compression=gzip)\n[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/KaTeX/KaTeX)\n[![Financial Contributors on Open Collective](https://opencollective.com/katex/all/badge.svg?label=financial+contributors)](https://opencollective.com/katex)\n\nKaTeX is a fast, easy-to-use JavaScript library for TeX math rendering on the web.\n\n * **Fast:** KaTeX renders its math synchronously and doesn't need to reflow the page. See how it compares to a competitor in [this speed test](https://www.intmath.com/cg5/katex-mathjax-comparison.php).\n * **Print quality:** KaTeX's layout is based on Donald Knuth's TeX, the gold standard for math typesetting.\n * **Self contained:** KaTeX has no dependencies and can easily be bundled with your website resources.\n * **Server side rendering:** KaTeX produces the same output regardless of browser or environment, so you can pre-render expressions using Node.js and send them as plain HTML.\n\nKaTeX is compatible with all major browsers, including Chrome, Safari, Firefox, Opera, Edge, and IE 11.\n\nKaTeX supports much (but not all) of LaTeX and many LaTeX packages. See the [list of supported functions](https://katex.org/docs/supported.html).\n\nTry out KaTeX [on the demo page](https://katex.org/#demo)!\n\n## Getting started\n\n### Starter template\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003c!-- KaTeX requires the use of the HTML5 doctype. Without it, KaTeX may not render properly --\u003e\n\u003chtml\u003e\n  \u003chead\u003e\n    \u003clink rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css\" integrity=\"sha384-nB0miv6/jRmo5UMMR1wu3Gz6NLsoTkbqJghGIsx//Rlm+ZU03BU6SQNC66uf4l5+\" crossorigin=\"anonymous\"\u003e\n\n    \u003c!-- The loading of KaTeX is deferred to speed up page rendering --\u003e\n    \u003cscript defer src=\"https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.js\" integrity=\"sha384-7zkQWkzuo3B5mTepMUcHkMB5jZaolc2xDwL6VFqjFALcbeS9Ggm/Yr2r3Dy4lfFg\" crossorigin=\"anonymous\"\u003e\u003c/script\u003e\n\n    \u003c!-- To automatically render math in text elements, include the auto-render extension: --\u003e\n    \u003cscript defer src=\"https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/contrib/auto-render.min.js\" integrity=\"sha384-43gviWU0YVjaDtb/GhzOouOXtZMP/7XUzwPTstBeZFe/+rCMvRwr4yROQP43s0Xk\" crossorigin=\"anonymous\"\n        onload=\"renderMathInElement(document.body);\"\u003e\u003c/script\u003e\n  \u003c/head\u003e\n  ...\n\u003c/html\u003e\n```\n\nYou can also [download KaTeX](https://github.com/KaTeX/KaTeX/releases) and host it yourself.\n\nFor details on how to configure auto-render extension, refer to [the documentation](https://katex.org/docs/autorender.html).\n\n### API\n\nCall `katex.render` to render a TeX expression directly into a DOM element.\nFor example:\n\n```js\nkatex.render(\"c = \\\\pm\\\\sqrt{a^2 + b^2}\", element, {\n    throwOnError: false\n});\n```\n\nCall `katex.renderToString` to generate an HTML string of the rendered math,\ne.g., for server-side rendering.  For example:\n\n```js\nvar html = katex.renderToString(\"c = \\\\pm\\\\sqrt{a^2 + b^2}\", {\n    throwOnError: false\n});\n// '\u003cspan class=\"katex\"\u003e...\u003c/span\u003e'\n```\n\nMake sure to include the CSS and font files in both cases.\nIf you are doing all rendering on the server, there is no need to include the\nJavaScript on the client.\n\nThe examples above use the `throwOnError: false` option, which renders invalid\ninputs as the TeX source code in red (by default), with the error message as\nhover text.  For other available options, see the\n[API documentation](https://katex.org/docs/api.html),\n[options documentation](https://katex.org/docs/options.html), and\n[handling errors documentation](https://katex.org/docs/error.html).\n\n## Demo and Documentation\n\nLearn more about using KaTeX [on the website](https://katex.org)!\n\n## Contributors\n\n### Code Contributors\n\nThis project exists thanks to all the people who contribute code. If you'd like to help, see [our guide to contributing code](CONTRIBUTING.md).\n\u003ca href=\"https://github.com/KaTeX/KaTeX/graphs/contributors\"\u003e\u003cimg src=\"https://contributors-svg.opencollective.com/katex/contributors.svg?width=890\u0026button=false\" alt=\"Code contributors\" /\u003e\u003c/a\u003e\n\n### Financial Contributors\n\nBecome a financial contributor and help us sustain our community.\n\n#### Individuals\n\n\u003ca href=\"https://opencollective.com/katex\"\u003e\u003cimg src=\"https://opencollective.com/katex/individuals.svg?width=890\" alt=\"Contribute on Open Collective\"\u003e\u003c/a\u003e\n\n#### Organizations\n\nSupport this project with your organization. Your logo will show up here with a link to your website.\n\n\u003ca href=\"https://opencollective.com/katex/organization/0/website\"\u003e\u003cimg src=\"https://opencollective.com/katex/organization/0/avatar.svg\" alt=\"Organization 1\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/katex/organization/1/website\"\u003e\u003cimg src=\"https://opencollective.com/katex/organization/1/avatar.svg\" alt=\"Organization 2\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/katex/organization/2/website\"\u003e\u003cimg src=\"https://opencollective.com/katex/organization/2/avatar.svg\" alt=\"Organization 3\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/katex/organization/3/website\"\u003e\u003cimg src=\"https://opencollective.com/katex/organization/3/avatar.svg\" alt=\"Organization 4\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/katex/organization/4/website\"\u003e\u003cimg src=\"https://opencollective.com/katex/organization/4/avatar.svg\" alt=\"Organization 5\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/katex/organization/5/website\"\u003e\u003cimg src=\"https://opencollective.com/katex/organization/5/avatar.svg\" alt=\"Organization 6\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/katex/organization/6/website\"\u003e\u003cimg src=\"https://opencollective.com/katex/organization/6/avatar.svg\" alt=\"Organization 7\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/katex/organization/7/website\"\u003e\u003cimg src=\"https://opencollective.com/katex/organization/7/avatar.svg\" alt=\"Organization 8\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/katex/organization/8/website\"\u003e\u003cimg src=\"https://opencollective.com/katex/organization/8/avatar.svg\" alt=\"Organization 9\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/katex/organization/9/website\"\u003e\u003cimg src=\"https://opencollective.com/katex/organization/9/avatar.svg\" alt=\"Organization 10\"\u003e\u003c/a\u003e\n\n## License\n\nKaTeX is licensed under the [MIT License](https://opensource.org/licenses/MIT).\n","funding_links":["https://github.com/sponsors/KaTeX","https://opencollective.com/katex","https://opencollective.com/katex/organization/0/website","https://opencollective.com/katex/organization/1/website","https://opencollective.com/katex/organization/2/website","https://opencollective.com/katex/organization/3/website","https://opencollective.com/katex/organization/4/website","https://opencollective.com/katex/organization/5/website","https://opencollective.com/katex/organization/6/website","https://opencollective.com/katex/organization/7/website","https://opencollective.com/katex/organization/8/website","https://opencollective.com/katex/organization/9/website"],"categories":["JavaScript","HarmonyOS","TypeScript","Subject Specific","Web Development","مصيرات ومحررات المعادلات","JavaScript (485)","latex","语言资源库","Uncategorized"],"sub_categories":["Windows Manager","Math","C++/C Toolkit","JavaScript","Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKaTeX%2FKaTeX","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FKaTeX%2FKaTeX","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKaTeX%2FKaTeX/lists"}