{"id":15974582,"url":"https://github.com/alex-mashin/mathjax","last_synced_at":"2025-05-07T06:25:27.487Z","repository":{"id":37405093,"uuid":"336545205","full_name":"alex-mashin/MathJax","owner":"alex-mashin","description":"A MediaWiki extension that allows embedding mathematical formulas into wiki pages","archived":false,"fork":false,"pushed_at":"2024-12-17T16:37:19.000Z","size":238,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T22:22:20.577Z","etag":null,"topics":["docker","mathjax","mediawiki-extension","nodejs","php","php7","php8","tex"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alex-mashin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"publiccode":null,"codemeta":null}},"created_at":"2021-02-06T13:33:21.000Z","updated_at":"2024-12-26T08:52:00.000Z","dependencies_parsed_at":"2024-10-22T06:12:35.473Z","dependency_job_id":null,"html_url":"https://github.com/alex-mashin/MathJax","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-mashin%2FMathJax","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-mashin%2FMathJax/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-mashin%2FMathJax/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-mashin%2FMathJax/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alex-mashin","download_url":"https://codeload.github.com/alex-mashin/MathJax/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242921588,"owners_count":20207073,"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":["docker","mathjax","mediawiki-extension","nodejs","php","php7","php8","tex"],"created_at":"2024-10-07T21:42:53.968Z","updated_at":"2025-05-07T06:25:27.481Z","avatar_url":"https://github.com/alex-mashin.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MathJax extension for MediaWiki\nVersion 3.1.\n\nAlexander Mashin, based on work by Mithgol the Webmaster.\n\n## Overview\n*MathJax* is a *MediaWiki* extension introducing a parser tag `\u003cmath\u003e`\nthat allows to embed mathematical formulae in _TeX_ or _MML_ into wiki pages.\n\nFormulae are rendered by [MathJax](https://docs.mathjax.org/en/latest/index.html) 3.0 or above,\nserver-side (converted to MathML), client-side (re-rendered and menu added), or both.\n\nFormulae can be wikified:\n- manually, e.g.: `x' = \\frac {x-vt} {\\sqrt {1 - {v^2} / [[Speed of light|c]] ^ 2}}`,\n- or automatically, if `$wgmjAddWikilinks = true`, by defining _MediaWiki_ messages linking wiki pages to _TeX_ commands\n(starting with a backslash):\n  - e.g., to add wikilinks to the _Exponent_ page in your wiki to all `\\exp` commands, add `exp` to the\ncomma-separated list in the message _MediaWiki:mathjax-pages_\nand define a new message _MediaWiki:mathjax-page-exp_ as `Exponent`.\n\nNew macros (e.g. `\\newmacro`) are defined by adding `newmacro` to the comma-separated list stored\nin the message _MediaWiki:mathjax-macros_ and creating the message _MediaWiki:mathjax-macro-newmacro_\ncontaining the definition of the macro.\n\n## Credits\nThe extension was initially written by [Mithgol the Webmaster](https://traditio.wiki/Mithgol_the_Webmaster) in 2010\nand then rewritten completely several times by [Alexander Mashin](https://traditio.wiki/Alex_Mashin)\nfor [Traditio wiki](https://traditio.wiki). In 2021, it is published at GitHub.\n\n## Requirements\nThe extension requires:\n- _PHP_ 7.4 or higher,\n- _MediaWiki_ 1.33 or higher,\n- _MathJax_ 3.0 or higher.\n\n## Installation\nTo install the extension, copy or the entire `MathJax` folder or clone the repository into `(path to mediawiki)/extensions` folder.\nTo enable the extension, add `wfLoadExtension( 'MathJax' );` to `LocalSettings.php`.\n\nIf fourmulæ are to be rendered server-side, or MathJax is to be served from your server\nrather that from MathJax CDN, also run `npm install` (requires `node.js`) in `MathJax` folder.\nMake it accessible in the web server configuration. Otherwise, _MathJax_ will be loaded from CDN.\n\nIf, however, formulæ are to be rendered server-side in a _MathJax_ container,\ndo not run `npm install`, but\ncopy the file `src/engines/Dockerfile` to an appropriate location,\nunless you already have the identical file `includes/presets/cgi/Dockerfile`\nfrom the extension _External Data_ installed,\nbuild the image, set up the _MathJax_ container and have it connected to\nyour _MediaWiki_ installation as described in the `src/engines/docker-compose.yml` file.\nSet `$wgmjServiceUrl` to the URL of the container, as connectable from\n_MediaWiki_. You might change the default values of `$wgmjServiceExternalUrl`\nand `$wgmjServiceVersionUrl`, too.\n\n## Further information\nFor further information, see https://traditio.wiki/MathJax_for_MediaWiki.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falex-mashin%2Fmathjax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falex-mashin%2Fmathjax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falex-mashin%2Fmathjax/lists"}