{"id":42362934,"url":"https://github.com/typora-community-plugin/typora-plugin-note-snippets","last_synced_at":"2026-03-16T08:13:25.484Z","repository":{"id":188230765,"uuid":"678161061","full_name":"typora-community-plugin/typora-plugin-note-snippets","owner":"typora-community-plugin","description":"Use slash command to autocomplete note snippets. | 使用斜线指令输入笔记片段。","archived":false,"fork":false,"pushed_at":"2024-08-24T09:06:14.000Z","size":96,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-24T16:23:22.905Z","etag":null,"topics":["typora","typora-community-plugin","typora-plugin"],"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/typora-community-plugin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2023-08-13T22:07:36.000Z","updated_at":"2024-08-24T09:06:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"e55ebae7-bb91-4f7a-a387-8d30c1ce333f","html_url":"https://github.com/typora-community-plugin/typora-plugin-note-snippets","commit_stats":null,"previous_names":["typora-community-plugin/typora-plugin-note-snippets"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/typora-community-plugin/typora-plugin-note-snippets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typora-community-plugin%2Ftypora-plugin-note-snippets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typora-community-plugin%2Ftypora-plugin-note-snippets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typora-community-plugin%2Ftypora-plugin-note-snippets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typora-community-plugin%2Ftypora-plugin-note-snippets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/typora-community-plugin","download_url":"https://codeload.github.com/typora-community-plugin/typora-plugin-note-snippets/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typora-community-plugin%2Ftypora-plugin-note-snippets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28816640,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T12:25:15.069Z","status":"ssl_error","status_checked_at":"2026-01-27T12:25:05.297Z","response_time":168,"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":["typora","typora-community-plugin","typora-plugin"],"created_at":"2026-01-27T17:14:43.283Z","updated_at":"2026-01-27T17:14:43.856Z","avatar_url":"https://github.com/typora-community-plugin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Typora Plugin Note Snippets\n\nEnglish | [简体中文](https://github.com/typora-community-plugin/typora-plugin-note-snippets/blob/main/README.zh-CN.md)\n\nThis a plugin based on [typora-community-plugin](https://github.com/typora-community-plugin/typora-community-plugin) for [Typora](https://typora.io).\n\nUse slash command to autocomplete note snippets.\n\n## Preview\n\n![](/docs/assets/base.jpg)\n\n## Usage\n\n1. Open \"Plugin Settings\" Modal → Plugin \"Note Snippets\" Settings → \"Note snippets folder\" → click \"Open folder\" button to open **the snippets folder**.\n\n2. (Optional) Add JavaScript ESM file to **the snippets folder**\n\n```js\n// function.js (or other name)\nexport function author() {\n  return 'Tom'\n}\n```\n\n3. Add note snippets `snippets.md`(or other name) to **the snippets folder**\n\n````markdown\nkey\n\n```markdown\nhello world\n```\n\nkey2\n\n```markdown\nhello {{ author() }}\n```\n````\n\nUse slash command in Typora, like `/key2`. It will replace with `hello Tom`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypora-community-plugin%2Ftypora-plugin-note-snippets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftypora-community-plugin%2Ftypora-plugin-note-snippets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypora-community-plugin%2Ftypora-plugin-note-snippets/lists"}