{"id":29902847,"url":"https://github.com/maisonsmd/carta-plugin-subscript","last_synced_at":"2026-02-16T09:32:30.557Z","repository":{"id":218464063,"uuid":"746471135","full_name":"maisonsmd/carta-plugin-subscript","owner":"maisonsmd","description":"This plugin adds ability to render subscripts and superscripts to Carta","archived":false,"fork":false,"pushed_at":"2025-04-09T05:57:50.000Z","size":98,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-21T20:57:39.731Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/maisonsmd.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}},"created_at":"2024-01-22T04:03:35.000Z","updated_at":"2025-04-09T05:57:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"b9a2a63e-8fb2-4363-b5ee-e9bdd096ee13","html_url":"https://github.com/maisonsmd/carta-plugin-subscript","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"231dc1849d57eb076d70970fc1a715b7247d20c7"},"previous_names":["maisonsmd/carta-plugin-subscript"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maisonsmd/carta-plugin-subscript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maisonsmd%2Fcarta-plugin-subscript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maisonsmd%2Fcarta-plugin-subscript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maisonsmd%2Fcarta-plugin-subscript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maisonsmd%2Fcarta-plugin-subscript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maisonsmd","download_url":"https://codeload.github.com/maisonsmd/carta-plugin-subscript/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maisonsmd%2Fcarta-plugin-subscript/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29504749,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T09:05:14.864Z","status":"ssl_error","status_checked_at":"2026-02-16T08:55:59.364Z","response_time":115,"last_error":"SSL_read: 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":[],"created_at":"2025-08-01T16:15:42.411Z","updated_at":"2026-02-16T09:32:30.526Z","avatar_url":"https://github.com/maisonsmd.png","language":"Svelte","funding_links":[],"categories":[],"sub_categories":[],"readme":"![carta-plugin-subscript](https://img.shields.io/npm/v/carta-plugin-subscript)\n\n# carta-plugin-subscript\n\nThis plugin adds ability to render subscripts and superscripts to [Carta](https://github.com/BearToCode/carta).\n\n## New in v2\n\n- Support Carta v4\n- This plugin is now just a wrapper of [remark-supersub](https://www.npmjs.com/package/remark-supersub)\n\n## Installation\n\n```shell\nnpm i carta-plugin-subscript\n```\n\n## Setup\n\n### Extension\n\n```svelte\n\u003cscript\u003e\n\timport { Carta, MarkdownEditor } from 'carta-md';\n\timport { subscript } from 'carta-plugin-subscript';\n\n\tconst carta = new Carta({\n\t\textensions: [subscript()],\n\t\tgfmOptions: {\n\t\t\t// remark-gfm that Carta uses convert single tilde to strikethrough, disable that to use single tilde for subscript.\n\t\t\t// see https://stackoverflow.com/a/78076200/7884074\n\t\t\tsingleTilde: false,\n\t\t},\n\t});\n\u003c/script\u003e\n\n\u003cMarkdownEditor {carta} /\u003e\n```\n\n## Usage\n\nThis snippet:\n\n```\nH~2~O, CO~2~ and CH~4~ are greenhouse gases.\nIn the 19^th^ century, the concentration of CO~2~ was 280 ppm.\n```\n\nwill generate this output:\n\n![output](./static/output.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaisonsmd%2Fcarta-plugin-subscript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaisonsmd%2Fcarta-plugin-subscript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaisonsmd%2Fcarta-plugin-subscript/lists"}