{"id":16532152,"url":"https://github.com/madsmtm/katex","last_synced_at":"2026-06-09T05:32:34.773Z","repository":{"id":57438328,"uuid":"150889434","full_name":"madsmtm/katex","owner":"madsmtm","description":"Convert an image into KaTeX, using `\\rule`s","archived":false,"fork":false,"pushed_at":"2020-10-30T21:20:22.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-02T11:07:57.134Z","etag":null,"topics":["console-tool","facebook","facebook-messenger","image-processing","katex","pip","python","script"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/madsmtm.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}},"created_at":"2018-09-29T17:53:09.000Z","updated_at":"2025-07-28T15:12:59.000Z","dependencies_parsed_at":"2022-08-29T02:00:42.471Z","dependency_job_id":null,"html_url":"https://github.com/madsmtm/katex","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/madsmtm/katex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madsmtm%2Fkatex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madsmtm%2Fkatex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madsmtm%2Fkatex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madsmtm%2Fkatex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/madsmtm","download_url":"https://codeload.github.com/madsmtm/katex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madsmtm%2Fkatex/sbom","scorecard":{"id":610585,"data":{"date":"2025-08-11","repo":{"name":"github.com/madsmtm/katex","commit":"9df06efa10b912fe418501f281bdf29c9968fffd"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.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":"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":"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/10 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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" 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":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.0.4 not signed: https://api.github.com/repos/madsmtm/katex/releases/13166160","Warn: release artifact v0.0.3 not signed: https://api.github.com/repos/madsmtm/katex/releases/13166085","Warn: release artifact v0.0.2 not signed: https://api.github.com/repos/madsmtm/katex/releases/13166034","Warn: release artifact v0.0.1 not signed: https://api.github.com/repos/madsmtm/katex/releases/13165991","Warn: release artifact v0.0.4 does not have provenance: https://api.github.com/repos/madsmtm/katex/releases/13166160","Warn: release artifact v0.0.3 does not have provenance: https://api.github.com/repos/madsmtm/katex/releases/13166085","Warn: release artifact v0.0.2 does not have provenance: https://api.github.com/repos/madsmtm/katex/releases/13166034","Warn: release artifact v0.0.1 does not have provenance: https://api.github.com/repos/madsmtm/katex/releases/13165991"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}}]},"last_synced_at":"2025-08-21T02:33:08.246Z","repository_id":57438328,"created_at":"2025-08-21T02:33:08.247Z","updated_at":"2025-08-21T02:33:08.247Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34093774,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"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":["console-tool","facebook","facebook-messenger","image-processing","katex","pip","python","script"],"created_at":"2024-10-11T18:11:48.698Z","updated_at":"2026-06-09T05:32:34.745Z","avatar_url":"https://github.com/madsmtm.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python KaTeX\nContains functionality to convert an image into [KaTeX](https://github.com/Khan/KaTeX), using `\\rule`s\n\nAlso currently only set up to work with Facebook Messengers KaTeX setup, but it should be simple to adapt for other applications.\n\nMore functionality is planned, and PRs welcome!\n\n\n# Installation\n\n```sh\n$ # This will install the python package `katex`, along with the shell command\n$ # `image_to_katex`\n$ pip install katex\n```\n\n# Basic usage\n\n```sh\n$ # This will generate KaTeX output for that image, where the image is scaled\n$ # down to 30 pixels, and where each pixel is 5 units wide\n$ image_to_katex image.png -s 30 -ps 5\n```\n\n```sh\n$ # Display help message\n$ image_to_katex --help\n```\n\n# Facebook KaTeX info\nCustom KaTeX version, above v0.8.2 (17/8-2017) but below v0.9.0. At least commit [211c86d](https://github.com/KaTeX/KaTeX/commit/211c86d39bcdc421149628f7b266891138cbdb1a).\n\nMax length of Facebook messages is 20000 chars - though they've added an extra check to not execute KaTeX if the message is above 1000 chars, or the depth level is above 20. Probably parameters they can tune remotely.\n\nFacebook renders any KaTeX error messages in the html `title` attribute (which means you can hover over to view it).\n\nYou can use `$$`, `\\(`+`\\)` or `\\[`+`\\]` as delimeters. `$$` or `\\[`+`\\]` renders the LaTeX in displayMode, `\\(`+`\\)` renders it inline.\n\nFacebook wraps all inputs in a `\\color` block, like this: `\\color{#fff}{inp}`, where `inp` is the input\n\nKnown current KaTeX options:\n\n- displayMode = true if using `$$` else false\n- colorIsTextColor: default\n- maxSize: 5\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadsmtm%2Fkatex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmadsmtm%2Fkatex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadsmtm%2Fkatex/lists"}