{"id":20668688,"url":"https://github.com/scruel/docsify-latex","last_synced_at":"2026-03-05T08:32:26.599Z","repository":{"id":59646038,"uuid":"538294814","full_name":"scruel/docsify-latex","owner":"scruel","description":"A docsify.js plugin for typesetting LaTeX with display engines from markdown.","archived":false,"fork":false,"pushed_at":"2023-01-11T02:14:56.000Z","size":1158,"stargazers_count":35,"open_issues_count":4,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-15T01:54:17.731Z","etag":null,"topics":["docsify","docsify-latex","katex","latex","math","mathjax"],"latest_commit_sha":null,"homepage":"https://scruel.github.io/docsify-latex","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/scruel.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":"2022-09-19T01:45:27.000Z","updated_at":"2025-12-07T12:45:49.000Z","dependencies_parsed_at":"2023-02-08T22:31:43.366Z","dependency_job_id":null,"html_url":"https://github.com/scruel/docsify-latex","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/scruel/docsify-latex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scruel%2Fdocsify-latex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scruel%2Fdocsify-latex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scruel%2Fdocsify-latex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scruel%2Fdocsify-latex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scruel","download_url":"https://codeload.github.com/scruel/docsify-latex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scruel%2Fdocsify-latex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30115937,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T08:19:04.902Z","status":"ssl_error","status_checked_at":"2026-03-05T08:17:37.148Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["docsify","docsify-latex","katex","latex","math","mathjax"],"created_at":"2024-11-16T20:10:53.207Z","updated_at":"2026-03-05T08:32:26.569Z","avatar_url":"https://github.com/scruel.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docsify-latex\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=flat-square)](https://github.com/scruel/docsify-latex/blob/master/LICENSE)\n[![GitHub Workflow Status (master)](https://img.shields.io/github/actions/workflow/status/scruel/docsify-latex/build.yml?branch=master\u0026label=checks\u0026style=flat-square)](https://github.com/scruel/docsify-latex/actions?query=branch%3Amaster+)\n[![NPM](https://img.shields.io/npm/v/docsify-latex.svg?style=flat-square)](https://www.npmjs.com/package/docsify-latex)\n[![jsDelivr](https://data.jsdelivr.com/v1/package/npm/docsify-latex/badge)](https://www.jsdelivr.com/package/npm/docsify-latex)\n\nA [docsify.js](https://docsify.js.org) plugin for typesetting LaTeX with display engines from markdown.\n\n\u003cbr/\u003e\n\u003cp align=\"center\"\u003eDocsify + LaTeX = :heart:\u003c/p\u003e\n\n## Installation\n\nAdd JavaScript LaTeX display engine, and docsify-latex plugin after docsify and engine scirpts all to your `index.html`.\n\nFor example, I prefer [MathJax][MathJax], and load scripts from the content delivery network (CDN):\n\n```html\n\u003c!-- Docsify v4 --\u003e\n\u003cscript src=\"//cdn.jsdelivr.net/npm/docsify@4\"\u003e\u003c/script\u003e\n\u003c!-- LaTeX display engine --\u003e\n\u003cscript src=\"//cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js\"\u003e\u003c/script\u003e\n\u003c!--  docsify-latex plugin --\u003e\n\u003cscript src=\"//cdn.jsdelivr.net/npm/docsify-latex@0\"\u003e\u003c/script\u003e\n```\n\nConfigure latex plugin options:\n\n```javascript\nwindow.$docsify = {\n  // ...\n  latex: {\n    inlineMath   : [['$', '$'], ['\\\\(', '\\\\)']], // default\n    displayMath  : [['$$', '$$']],               // default\n  }\n};\n```\n\n\u003e Notice:\n\u003e\n\u003e You should put docsify-latex plugin script below docsify and LaTeX display engine scripts, because plugin script **depends on** them.\n\u003e\n\u003e To keep loading scripts in order, you also should remove `async` attribute from the script element.\n\nSee [Documentation site][Documentation] for more usage and more details.\n\n## Usage\n\nPut LaTeX within symbols you configured.\n\nFor example, by default we configured `$$` for marking section inner LaTeX in display mode, then:\n\n```math\n$$\nE=mc^2\n$$\n```\n\nGo to display engine official website for more details about supported LaTeX functions.\n\nSee [Documentation site][Documentation] for more usage and more details.\n\nSeeking for demo projects, click [here][Demo Projects] to learn more.\n\n## Features\n\nThis plugin helps you typeset LaTeX with some JavaScript LaTeX display engines.\n\n**Supported engine features**:\n\n- Equation cross-reference jump (same page only)\n- Typsetting complex LaTeX content\n- Overflowed content scroll bar\n\nSee [Documentation Example][Documentation Example] for more details.\n\n**List of integrated engines**:\n\n- [MathJax V3](https://docs.mathjax.org/)\n- [MathJax V2](https://docs.mathjax.org/en/v2.7-latest/index.html)\n- [KaTeX](https://katex.org/docs)\n\n\u003e If you want to integrate more engines, feel free to fire an issue to explain the reason, or more well, you can directly make a pull request.\n\n## License\n\nThis project is licensed under the MIT License.\n\nSee the [LICENSE](https://github.com/scruel/docsify-latex/blob/master/LICENSE) for details.\n\nCopyright (c) Scruel Tao ([@scruel](https://github.com/scruel))\n\n[MathJax]: https://docs.mathjax.org\n[Documentation]: https://scruel.github.io/docsify-latex\n[Documentation Example]: https://scruel.github.io/docsify-latex/#/example\n[Demo Projects]: https://scruel.github.io/docsify-latex/#/demo\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscruel%2Fdocsify-latex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscruel%2Fdocsify-latex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscruel%2Fdocsify-latex/lists"}