{"id":13475706,"url":"https://github.com/mathjax/MathJax-src","last_synced_at":"2025-03-27T00:31:52.926Z","repository":{"id":4208776,"uuid":"52348698","full_name":"mathjax/MathJax-src","owner":"mathjax","description":"MathJax source code for version 3 and beyond","archived":false,"fork":false,"pushed_at":"2024-10-24T21:57:17.000Z","size":47297,"stargazers_count":2064,"open_issues_count":39,"forks_count":207,"subscribers_count":38,"default_branch":"master","last_synced_at":"2024-10-29T15:03:26.189Z","etag":null,"topics":["mathjax","next-generation"],"latest_commit_sha":null,"homepage":"https://www.mathjax.org/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mathjax.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"github":["numfocus"],"custom":["https://numfocus.org/donate-to-mathjax"]}},"created_at":"2016-02-23T09:52:03.000Z","updated_at":"2024-10-28T11:27:40.000Z","dependencies_parsed_at":"2024-04-08T18:51:51.588Z","dependency_job_id":null,"html_url":"https://github.com/mathjax/MathJax-src","commit_stats":{"total_commits":2517,"total_committers":20,"mean_commits":125.85,"dds":"0.41795788637266584","last_synced_commit":"8565f9da973238e4c9571a86a4bcb281b1d98d9b"},"previous_names":["mathjax/mathjax-v3"],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathjax%2FMathJax-src","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathjax%2FMathJax-src/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathjax%2FMathJax-src/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathjax%2FMathJax-src/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mathjax","download_url":"https://codeload.github.com/mathjax/MathJax-src/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222182591,"owners_count":16944870,"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":["mathjax","next-generation"],"created_at":"2024-07-31T16:01:22.784Z","updated_at":"2024-10-30T07:31:18.271Z","avatar_url":"https://github.com/mathjax.png","language":"TypeScript","funding_links":["https://github.com/sponsors/numfocus","https://numfocus.org/donate-to-mathjax"],"categories":["TypeScript"],"sub_categories":[],"readme":"# MathJax (Source Repository)\n\n![GitHub release version](https://img.shields.io/github/v/release/mathjax/MathJax-src.svg?sort=semver)\n![GitHub release version (v2)](https://img.shields.io/github/package-json/v/mathjax/MathJax/legacy-v2.svg?label=release-v2)\n![NPM version](https://img.shields.io/npm/v/mathjax.svg?style=flat)\n\u003ca href=\"http://www.numfocus.org\"\u003e![powered by NumFOCUS](https://img.shields.io/badge/powered%20by-NumFOCUS-orange.svg?style=flat)\u003c/a\u003e\n![jsdelivr rank](https://flat.badgen.net/jsdelivr/rank/npm/mathjax?color=green)\n![jsDelivr hits (npm)](https://img.shields.io/jsdelivr/npm/hm/mathjax)\n![npm monthly downloads (full)](https://img.shields.io/npm/dm/mathjax?label=npm)\n![npm monthly downloads (full)](https://img.shields.io/npm/dm/mathjax-full?label=npm%20%28full%29)\n![npm total downloads](https://img.shields.io/npm/dt/mathjax.svg?style=flat\u0026label=npm%20total)\n![npm total downloads](https://img.shields.io/npm/dt/mathjax-full.svg?style=flat\u0026label=npm%20total%20%28full%29)\n\n## Beautiful math in all browsers\n\nMathJax is an open-source JavaScript display engine for LaTeX, MathML,\nand AsciiMath notation that works in all modern browsers.  It was\ndesigned with the goal of consolidating the recent advances in web\ntechnologies into a single, definitive, math-on-the-web platform\nsupporting the major browsers and operating systems.  It requires no\nsetup on the part of the user (no plugins to download or software to\ninstall), so the page author can write web documents that include\nmathematics and be confident that users will be able to view it\nnaturally and easily.  Simply include MathJax and some mathematics in\na web page, and MathJax does the rest.\n\nSome of the main features of MathJax include:\n\n- High-quality display of LaTeX, MathML, and AsciiMath notation in HTML pages\n\n- Supported in most browsers with no plug-ins, extra fonts, or special\n  setup for the reader\n\n- Easy for authors, flexible for publishers, extensible for developers\n\n- Supports math accessibility, cut-and-paste interoperability, and other\n  advanced functionality\n\n- Powerful API for integration with other web applications\n\nSee \u003chttp://www.mathjax.org/\u003e for additional details about MathJax,\nand \u003chttps://docs.mathjax.org\u003e for the MathJax documentation.\n\n## What's in this Repository\n\nThis repository contains the source files for MathJax, which are\nwritten in TypeScript.  These are compiled into JavaScript files and\nthen combined into component files for use on the web.  The component\nfiles are available from several [CDN services that host\nMathJax](https://docs.mathjax.org/en/latest/web/start.html#using-mathjax-from-a-content-delivery-network-cdn),\nand also from the [MathJax Component\nRepository](https://github.com/mathjax/MathJax).  Node applications\ncan use either the component files, or call the MathJax JavaScript\nfiles directly.\n\n## Installation and Use\n\n### Using MathJax in web browsers\n\nIf you are loading MathJax from a CDN into a web page, there is no\nneed to install anything.  Simply use a `script` tag that loads\nMathJax from the CDN.  E.g.,\n\n``` html\n\u003cscript id=\"MathJax-script\" async src=\"https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js\"\u003e\u003c/script\u003e\n```\n    \nSee the [MathJax\ndocumentation](https://docs.mathjax.org/en/latest/index.html#browser-components),\nthe [MathJax Web Demos](https://github.com/mathjax/MathJax-demos-web),\nand the [MathJax Component\nRepository](https://github.com/mathjax/MathJax-demos-web) for more information.\n\n\n### Using MathJax Components in node applications\n\nTo use MathJax components in a node application, install the `mathjax` package:\n\n``` bash\nnpm install mathjax@3\n```\n\n(we are still making updates to version 2, so you should include `@3`\nsince the latest chronological version may not be version 3).\n\nThen require `mathjax` within your application:\n\n``` javascript\nrequire('mathjax').init({ ... }).then((MathJax) =\u003e { ... });\n```\n    \nwhere the first `{ ... }` is a MathJax configuration, and the second\n`{ ... }` is the code to run after MathJax has been loaded.  E.g.\n\n``` javascript\nrequire('mathjax').init({\n  loader: {load: ['input/tex', 'output/svg']}\n}).then((MathJax) =\u003e {\n  const svg = MathJax.tex2svg('\\\\frac{1}{x^2-1}', {display: true});\n  console.log(MathJax.startup.adaptor.outerHTML(svg));\n}).catch((err) =\u003e console.log(err.message));\n```\n\n**Note:** this technique is for node-based applications only, not for\nbrowser applications.  This method sets up an alternative DOM\nimplementation, which you don't need in the browser, and tells MathJax\nto use node's `require()` command to load external modules.  This\nsetup will not work properly in the browser, even if you webpack it or\nbundle it in other ways.\n    \nSee the\n[documentation](https://docs.mathjax.org/en/latest/index.html#server-nodejs)\nand the [MathJax Node\nRepository](https://github.com/mathjax/MathJax-demos-node) for more details.\n\n\n### Using MathJax modules directly in node applications\n\nYou can use the MathJax JavaScript files (as opposed to MathJax\ncomponents) directly in node applications.  This gives you the\ngreatest flexibility, but requires more coding.  To use this approach,\ninstall the `mathjax-full` package:\n\n    npm install mathjax-full\n\nThis will provide the following directories:\n\n    node_modules/\n      mathjax-full/\n        ts/                  the MathJax source TypeScript files\n        js/                  the compiled JavaScript files\n        components/          the component build tools and control files\n        es5/                 the packages component files\n\nYou can use the components and JavaScript files directly in your node\napplications (see the [MathJax node\ndemos](https://github.com/mathjax/MathJax-demos-node) for examples).\n\nIf you want to work from the GitHub repository directly, then do the following:\n\n``` bash\ngit clone https://github.com/mathjax/MathJax-src.git mathjax-src\ncd mathjax-src\nnpm run --silent compile\nnpm run --silent make-components\n```\n\nin order to compile the JavaScript files from the TypeScript source,\nand build the component files from the JavaScript files.\n\n## Code Contributions\n\nIf you are interested in contributing code to MathJax, please see the\n[documentation for contributors](CONTRIBUTING.md) for details on how\nto do this, and for the policies for making pull requests.  In\nparticular, please be careful that you are working from the proper\nbranch in the git repository, or you may be asked to rebase your\nchanges when you make a pull request.\n\n## MathJax Community\n\nThe main MathJax website is \u003chttp://www.mathjax.org\u003e, and it includes\nannouncements and other important information.  A [MathJax user\nforum](http://groups.google.com/group/mathjax-users) for asking\nquestions and getting assistance is hosted at Google, and the [MathJax\nbug tracker](https://github.com/mathjax/MathJax/issues) is hosted\nat GitHub.\n\nBefore reporting a bug, please check that it has not already been\nreported.  Also, please use the bug tracker (rather than the help\nforum) for reporting bugs, and use the user's forum (rather than the\nbug tracker) for questions about how to use MathJax.\n\n## MathJax Resources\n\n* [MathJax Documentation](https://docs.mathjax.org)\n* [MathJax Components](https://github.com/mathjax/MathJax)\n* [MathJax Source Code](https://github.com/mathjax/MathJax-src)\n* [MathJax Web Examples](https://github.com/mathjax/MathJax-demos-web)\n* [MathJax Node Examples](https://github.com/mathjax/MathJax-demos-node)\n* [MathJax Bug Tracker](https://github.com/mathjax/MathJax/issues)\n* [MathJax Users' Group](http://groups.google.com/group/mathjax-users)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathjax%2FMathJax-src","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathjax%2FMathJax-src","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathjax%2FMathJax-src/lists"}