{"id":23492882,"url":"https://github.com/paperist/remark-math","last_synced_at":"2025-10-10T16:35:12.542Z","repository":{"id":57135088,"uuid":"49127537","full_name":"Paperist/remark-math","owner":"Paperist","description":"wooorm/remark plugin for mathjax","archived":false,"fork":false,"pushed_at":"2023-07-12T00:12:19.000Z","size":175,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-28T05:27:41.601Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/Paperist.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":"2016-01-06T09:59:10.000Z","updated_at":"2019-07-21T17:15:29.000Z","dependencies_parsed_at":"2025-02-16T12:48:03.051Z","dependency_job_id":"a83ee4a4-c4bb-45a4-ad1b-56097e08dc32","html_url":"https://github.com/Paperist/remark-math","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/Paperist/remark-math","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paperist%2Fremark-math","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paperist%2Fremark-math/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paperist%2Fremark-math/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paperist%2Fremark-math/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Paperist","download_url":"https://codeload.github.com/Paperist/remark-math/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paperist%2Fremark-math/sbom","scorecard":{"id":107717,"data":{"date":"2025-08-11","repo":{"name":"github.com/Paperist/remark-math","commit":"4364630bc78e6e8dcb3d31391b1d3a003e8fb1c5"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/12 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"10 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-g4rg-993r-mgx7","Warn: Project is vulnerable to: GHSA-w5p7-h5w8-2hfq"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-15T11:24:48.713Z","repository_id":57135088,"created_at":"2025-08-15T11:24:48.713Z","updated_at":"2025-08-15T11:24:48.713Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279004694,"owners_count":26083750,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"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":[],"created_at":"2024-12-25T02:15:24.763Z","updated_at":"2025-10-10T16:35:12.519Z","avatar_url":"https://github.com/Paperist.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @paperist/remark-math\n\n[![LICENSE][license-badge]][license]\n[![NPM][npm-badge]][npm]\n[![standard-readme compliant][standard-readme-badge]][standard-readme]\n\n[npm]: https://www.npmjs.com/package/@paperist/remark-math\n[license]: https://3846masa.mit-license.org\n[standard-readme]: https://github.com/RichardLitt/standard-readme\n[npm-badge]: https://flat.badgen.net/npm/v/@paperist/remark-math\n[license-badge]: https://flat.badgen.net/badge/license/MIT/blue\n[standard-readme-badge]: https://flat.badgen.net/badge/standard-readme/OK/green\n\n\u003e [wooorm/remark] plugin for math likes [KaTeX] / [MathJax]\n\n[wooorm/remark]: https://github.com/wooorm/remark\n[katex]: https://khan.github.io/KaTeX/\n[mathjax]: https://www.mathjax.org/\n\n## Table of Contents\n\n\u003c!-- TOC depthFrom:2 depthTo:3 updateOnSave:false --\u003e\n\n- [Install](#install)\n- [Usage](#usage)\n- [AST](#ast)\n  - [`Math`](#math)\n  - [`InlineMath`](#inlinemath)\n- [Contribute](#contribute)\n- [License](#license)\n\n\u003c!-- /TOC --\u003e\n\n## Install\n\n```\nnpm i remark @paperist/remark-math\n```\n\n## Usage\n\n```js\nconst unified = require('unified');\nconst parser = require('remark-parse');\nconst math = require('@paperist/remark-math');\n\nconst markdown = `\nIn an x-y Cartesian coordinate system,\nthe circle with centre coordinates \\\\((a, b)\\\\) and\nradius \\\\(r\\\\) is the set of all points \\\\((x, y)\\\\) such that\n\n\\\\[\n(x - a)^2 + (y - b)^2 = r^2\n\\\\]\n\n\u003e https://en.wikipedia.org/wiki/Circle\n`;\n\nconst processor = unified()\n  .use(parser)\n  .use(math);\nconst ast = processor.parse(markdown);\n\nprocessor.run(ast).then((ast) =\u003e {\n  console.dir(ast, { depth: null });\n});\n```\n\n## AST\n\nSee also [mdast], [unist].\n\n[mdast]: https://github.com/syntax-tree/mdast\n[unist]: https://github.com/syntax-tree/unist\n\n### `Math`\n\n`Math` extends [`Literal`][unist-literal].\n\n```typescript\ninterface Math extends Literal {\n  type: 'math';\n  math: string;\n}\n```\n\nFor example, the following markdown:\n\n```md\n\\[\nx^2 + y^2 = r^2\n\\]\n```\n\nYields:\n\n```json\n{\n  \"type\": \"math\",\n  \"value\": \"\\\\[\\nx^2 + y^2 = r^2\\n\\\\]\",\n  \"math\": \"\\nx^2 + y^2 = r^2\\n\"\n}\n```\n\n### `InlineMath`\n\n`InlineMath` extends [`Literal`][unist-literal].\n\n```typescript\ninterface InlineMath extends Literal {\n  type: 'inlineMath';\n  math: string;\n}\n```\n\nFor example, the following markdown:\n\n```md\n\\(E = mc^2\\)\n```\n\nYields:\n\n```json\n{\n  \"type\": \"inlineMath\",\n  \"value\": \"\\\\(E = mc^2\\\\)\",\n  \"math\": \"E = mc^2\"\n}\n```\n\n[unist-literal]: https://github.com/syntax-tree/unist#literal\n\n## Contribute\n\nPRs accepted.\n\n## License\n\n[MIT (c) 3846masa](https://3846masa.mit-license.org)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaperist%2Fremark-math","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaperist%2Fremark-math","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaperist%2Fremark-math/lists"}