{"id":18040612,"url":"https://github.com/overflowcat/remark-samp-kbd","last_synced_at":"2026-05-01T02:31:52.698Z","repository":{"id":207881768,"uuid":"718090677","full_name":"OverflowCat/remark-samp-kbd","owner":"OverflowCat","description":"Add \u003csamp\u003e, \u003ckbd\u003e and \u003cvar\u003e support to Markdown using remark","archived":false,"fork":false,"pushed_at":"2025-05-04T16:00:46.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-18T17:39:36.132Z","etag":null,"topics":["markdown","plugin","remark"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OverflowCat.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":"2023-11-13T11:06:27.000Z","updated_at":"2025-05-04T16:00:50.000Z","dependencies_parsed_at":"2025-05-04T17:29:07.398Z","dependency_job_id":null,"html_url":"https://github.com/OverflowCat/remark-samp-kbd","commit_stats":null,"previous_names":["overflowcat/remark-samp-kbd"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/OverflowCat/remark-samp-kbd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OverflowCat%2Fremark-samp-kbd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OverflowCat%2Fremark-samp-kbd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OverflowCat%2Fremark-samp-kbd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OverflowCat%2Fremark-samp-kbd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OverflowCat","download_url":"https://codeload.github.com/OverflowCat/remark-samp-kbd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OverflowCat%2Fremark-samp-kbd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32483406,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["markdown","plugin","remark"],"created_at":"2024-10-30T15:07:10.169Z","updated_at":"2026-05-01T02:31:52.682Z","avatar_url":"https://github.com/OverflowCat.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ``remark-samp-kbd``\r\n\r\n`remark-samp-kbd` is a [remark](https://github.com/remarkjs/remark/) plugin\r\nthats add semantic distinctions between\r\ncode fragments (`\u003ccode\u003e`),\r\nprogram outputs (`\u003csamp\u003e`),\r\nkeyboard keys (`\u003ckbd\u003e`),\r\nand variables (`\u003cvar\u003e`)\r\nby using different numbers of backticks.\r\n\r\n## Features\r\n\r\n- **Code Fragments ([`\u003ccode\u003e`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/code)):** 4k+1 for inline code references.\r\n- **Program Outputs ([`\u003csamp\u003e`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/samp)):** 4k+2 backticks, suitable for displaying names, paths, URIs (if not made a link) and any program output.\r\n- **Keyboard Keys ([`\u003ckbd\u003e`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/kbd)):** 4k+3 backticks to denote key strokes.\r\n- **Mathematical Variables ([`\u003cvar\u003e`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/var)):** 4k+4 for variables.\r\n\r\n(Here, \u003cvar\u003ek\u003cvar\u003e is a non-negative integer.)\r\n\r\n## Attribution\r\n\r\nThis plugin is inspired by [@GeeLaw](https://github.com/GeeLaw)'s [blog(post)](https://geelaw.blog/entries/meta-blog/#:~:text=Use%204k%2B1%20to%204k%2B4%20numbers%20of%20%60%20to%20represent%20different%20semantics).\r\n\r\n\u003e To remember this rule, remember that longer tag uses fewer backticks, and for the same length, the order is the lexicographical order.\r\n\r\n## License\r\n\r\n[WTFPL](./LICENSE).\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foverflowcat%2Fremark-samp-kbd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foverflowcat%2Fremark-samp-kbd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foverflowcat%2Fremark-samp-kbd/lists"}