{"id":14384491,"url":"https://github.com/zzish/react-latex","last_synced_at":"2025-04-05T06:08:27.008Z","repository":{"id":35735284,"uuid":"40014024","full_name":"zzish/react-latex","owner":"zzish","description":"React component to render Latex strings","archived":false,"fork":false,"pushed_at":"2022-12-30T18:21:43.000Z","size":547,"stargazers_count":184,"open_issues_count":20,"forks_count":21,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-29T05:07:27.200Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/zzish.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-31T16:20:05.000Z","updated_at":"2025-03-25T12:21:48.000Z","dependencies_parsed_at":"2023-01-16T04:34:30.632Z","dependency_job_id":null,"html_url":"https://github.com/zzish/react-latex","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzish%2Freact-latex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzish%2Freact-latex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzish%2Freact-latex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzish%2Freact-latex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zzish","download_url":"https://codeload.github.com/zzish/react-latex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247294539,"owners_count":20915340,"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":[],"created_at":"2024-08-28T18:01:25.656Z","updated_at":"2025-04-05T06:08:26.992Z","avatar_url":"https://github.com/zzish.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# react-latex [![NPM version][npm-image]][npm-url]\n\n\u003e React component to render latex strings, based on [Katex](https://github.com/Khan/KaTeX)\n\n## Install\n\n```sh\n$ npm install --save react-latex\n```\n\n## Usage\n\nIn javascript\n\n### Before using Latex\n\nInclude in your html Katex CSS\n\n```html\n\u003chtml\u003e\n    \u003chead\u003e\n        \u003clink\n            href=\"//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.9.0/katex.min.css\"\n            rel=\"stylesheet\"\n        /\u003e\n    \u003c/head\u003e\n\u003c/html\u003e\n```\n\n### Inline Latex\n\n```js\nvar Latex = require('react-latex');\n\n...\n    render(){\n        return (\n            \u003ch3\u003e\n                \u003cLatex\u003eWhat is $(3\\times 4) \\div (5-3)$\u003c/Latex\u003e\n            \u003c/h3\u003e\n        );\n    }\n...\n```\n\n### Block Latex\n\n```js\nvar Latex = require('react-latex');\n\n...\n    render(){\n        return (\n            \u003ch3\u003e\n                \u003cLatex displayMode={true}\u003e$$(3\\times 4) \\div (5-3)$$\u003c/Latex\u003e\n            \u003c/h3\u003e\n        );\n    }\n...\n```\n\n### Options for Katex\n\nA number of options are now supported. For a comprehensive list please visit: [here](https://katex.org/docs/options.html)\n\n## License\n\nMIT © [Zzish](http://www.zzish.com)\n\n[npm-image]: https://badge.fury.io/js/react-latex.svg\n[npm-url]: https://npmjs.org/package/react-latex\n[travis-image]: https://travis-ci.org/zzish/react-latex.svg?branch=master\n[travis-url]: https://travis-ci.org/zzish/react-latex\n[daviddm-image]: https://david-dm.org/zzish/react-latex.svg?theme=shields.io\n[daviddm-url]: https://david-dm.org/zzish/react-latex\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzzish%2Freact-latex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzzish%2Freact-latex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzzish%2Freact-latex/lists"}