{"id":21486907,"url":"https://github.com/ntsd/svelte-tex","last_synced_at":"2025-07-15T14:33:08.036Z","repository":{"id":187671927,"uuid":"677214018","full_name":"ntsd/svelte-tex","owner":"ntsd","description":"Svelte component to convert TeX/LaTeX to MathML or SVG","archived":false,"fork":false,"pushed_at":"2024-11-16T13:03:02.000Z","size":460,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-16T13:33:24.461Z","etag":null,"topics":["hacktoberfest","latex","math","mathml","svelte","svg","tex"],"latest_commit_sha":null,"homepage":"https://ntsd.github.io/svelte-tex/","language":"Svelte","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/ntsd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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,"publiccode":null,"codemeta":null}},"created_at":"2023-08-11T02:51:11.000Z","updated_at":"2024-11-16T13:03:05.000Z","dependencies_parsed_at":"2024-11-16T13:28:04.005Z","dependency_job_id":"4b503f54-74fb-4dab-a378-d675724160b9","html_url":"https://github.com/ntsd/svelte-tex","commit_stats":null,"previous_names":["ntsd/svelte-tex"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntsd%2Fsvelte-tex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntsd%2Fsvelte-tex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntsd%2Fsvelte-tex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntsd%2Fsvelte-tex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ntsd","download_url":"https://codeload.github.com/ntsd/svelte-tex/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226047087,"owners_count":17565286,"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":["hacktoberfest","latex","math","mathml","svelte","svg","tex"],"created_at":"2024-11-23T13:24:42.612Z","updated_at":"2024-11-23T13:24:43.831Z","avatar_url":"https://github.com/ntsd.png","language":"Svelte","funding_links":[],"categories":[],"sub_categories":[],"readme":"# svelte-tex\n\n[![npm version](https://badge.fury.io/js/svelte-tex.svg)](https://www.npmjs.com/package/svelte-tex)\n\nSvelte Component to convert [TeX](https://en.wikipedia.org/wiki/TeX) to rendered SVG using [MathJax](https://github.com/mathjax/MathJax) or rendered MathML using [Temml](https://github.com/ronkok/Temml).\n\n[Try It Online](https://ntsd.github.io/svelte-tex)\n\n*Svelte 5 Ready*\n\n## Features\n\n- Convert TeX to SVG using [MathJax](https://github.com/mathjax/MathJax)\n- Convert TeX to MathML using [Temml](https://github.com/ronkok/Temml)\n- Support MathJax options\n- Support Temml options\n\n## Installation\n\n`npm install svelte-tex`\n\n## Usage\n\n\u003e **`MathML` is more recommended since `MathSVG` bundle size is not small.**\n\n### MathML\n\n```ts\n\u003cscript lang=\"ts\"\u003e\n  import MathML from 'svelte-tex/package/MathML.svelte';\n\n  // use String.raw to escape `\\`\n  const tex = String.raw`\\frac{(n^2+n)(2n+1)}{6}`;\n\u003c/script\u003e\n\n\u003cMathML {tex} /\u003e\n// or include Temml options\n\u003cMathML {tex} temmlOptions={{}} /\u003e\n```\n\n### MathSVG\n\n```ts\n\u003cscript lang=\"ts\"\u003e\n  import MathSVG from 'svelte-tex/package/MathSVG.svelte';\n\n  // use String.raw to escape `\\`\n  const tex = String.raw`\\frac{(n^2+n)(2n+1)}{6}`;\n\u003c/script\u003e\n\n\u003cMathSVG {tex} /\u003e\n// or include MathJax options\n\u003cMathSVG {tex} texOptions={{}} svgOptions={{ fontCache: 'local' }} /\u003e\n```\n\n\u003e :warning: MathSVG is not small for bundle size.\n\nMathJax is not supports TypeScript for options yet\n\ncheck texOptions from https://docs.mathjax.org/en/latest/options/input/tex.html#tex-input-processor-options\n\ncheck svgOptions from https://docs.mathjax.org/en/latest/options/output/svg.html#svg-options\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntsd%2Fsvelte-tex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fntsd%2Fsvelte-tex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntsd%2Fsvelte-tex/lists"}