{"id":28536352,"url":"https://github.com/fourdim/shiki-tex","last_synced_at":"2026-04-30T06:40:10.939Z","repository":{"id":297573144,"uuid":"980958441","full_name":"fourdim/shiki-tex","owner":"fourdim","description":"A beautiful syntax highlighter for LaTeX code listing based on Shiki.","archived":false,"fork":false,"pushed_at":"2026-04-01T22:47:22.000Z","size":291,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-30T06:39:53.274Z","etag":null,"topics":["highlight","latex","shiki","syntax","syntax-highlighting"],"latest_commit_sha":null,"homepage":"https://shiki-tex.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fourdim.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-10T03:14:48.000Z","updated_at":"2026-04-01T22:46:53.000Z","dependencies_parsed_at":"2025-07-01T23:20:56.594Z","dependency_job_id":"165ecfc3-b567-4e21-9c89-5081d3bd6bb3","html_url":"https://github.com/fourdim/shiki-tex","commit_stats":null,"previous_names":["fourdim/shiki-tex"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/fourdim/shiki-tex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fourdim%2Fshiki-tex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fourdim%2Fshiki-tex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fourdim%2Fshiki-tex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fourdim%2Fshiki-tex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fourdim","download_url":"https://codeload.github.com/fourdim/shiki-tex/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fourdim%2Fshiki-tex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32457110,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["highlight","latex","shiki","syntax","syntax-highlighting"],"created_at":"2025-06-09T17:36:40.778Z","updated_at":"2026-04-30T06:40:10.928Z","avatar_url":"https://github.com/fourdim.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# shiki-tex\n\nA beautiful syntax highlighter for LaTeX code listing based on [Shiki](https://github.com/shikijs/shiki).\n\n[🚀 Playground](https://shiki-tex.vercel.app/)\n\n## Get Started\n\nThe [Playground](https://shiki-tex.vercel.app/) offers the simplest way to generate LaTeX code listings:\n\n1. Paste your code into the editor\n2. Select your preferred language and theme\n3. Copy the generated LaTeX code\n4. Paste it back into your LaTeX document\n\nThe syntax highlighting will be automatically applied when you compile your LaTeX document.\n\n## Installation\n\nYou can also install `shiki-tex` via npm and use it programmatically in your projects:\n\n```bash\nnpm install shiki-tex\n```\n\n\n## Core API\n\n```ts\nimport { codeToLaTeX } from 'shiki-tex';\n\nconst code = `console.log(\"Hello, world!\");`;\n\nconst [content, colorDefs] = await codeToLaTeX(code, {\n  lang: 'js',\n  theme: 'light-plus',\n  escapeInside: ['\u003c@', '@\u003e'],\n});\n\nconsole.log(Array.from(colorDefs.values()).join('\\n'));\nconsole.log(content);\n```\n\n## License\n\n[MPL 2.0](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffourdim%2Fshiki-tex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffourdim%2Fshiki-tex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffourdim%2Fshiki-tex/lists"}