{"id":19208584,"url":"https://github.com/heiwa4126/unified-plugin-tutorial-js1","last_synced_at":"2025-02-23T07:16:29.642Z","repository":{"id":156880833,"uuid":"632238193","full_name":"heiwa4126/unified-plugin-tutorial-js1","owner":"heiwa4126","description":"retext のプラグインをつくってみる練習","archived":false,"fork":false,"pushed_at":"2023-04-27T02:35:21.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-04T16:18:37.319Z","etag":null,"topics":["drill","plugin","unified"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/heiwa4126.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-04-25T02:08:58.000Z","updated_at":"2023-04-27T02:32:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"944b46fd-54e3-4b0e-bb05-2e0f943b57a1","html_url":"https://github.com/heiwa4126/unified-plugin-tutorial-js1","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heiwa4126%2Funified-plugin-tutorial-js1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heiwa4126%2Funified-plugin-tutorial-js1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heiwa4126%2Funified-plugin-tutorial-js1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heiwa4126%2Funified-plugin-tutorial-js1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heiwa4126","download_url":"https://codeload.github.com/heiwa4126/unified-plugin-tutorial-js1/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240280984,"owners_count":19776418,"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","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":["drill","plugin","unified"],"created_at":"2024-11-09T13:27:05.167Z","updated_at":"2025-02-23T07:16:29.517Z","avatar_url":"https://github.com/heiwa4126.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# unified-plugin-tutorial-js1\n\nunifiedのremark/rehype pluginを作るチュートリアルをやってみた。\n\nまず\n[Create a plugin \\- unified](https://unifiedjs.com/learn/guide/create-a-plugin/)\nを見ながら retext のプラグインをつくってみる。\n\n先にこれをやってから。\n[Use unified - unified](https://unifiedjs.com/learn/guide/using-unified/)\n\n[Learn - unified](https://unifiedjs.com/learn/) にづづく。\n\n\n## 実行\n\n```bash\npnpm i\n```\nしたのち\n\n[Use unified - unified](https://unifiedjs.com/learn/guide/using-unified/)の方は:\n```bash\nnode index.js\n```\n\n[Create a plugin \\- unified](https://unifiedjs.com/learn/guide/create-a-plugin/)の方は:\n```bash\nnode example.js\n```\n(プラグインは`index.js`から`pligin1.js`に移した)\n\n\n## メモ\n\nbashの\n```bash\nnode index.js \u003c example.md \u003e example.html\n```\n\nはPowershellでは\n```powershell\nGet-Content example.md | node index.js | Out-File example.html\n# or\nGC example.md | node index.js \u003e example.html\n```\n\n↑めんどくさいので `node index.js \u003c example.md` 相当は `pnpm start`で。\n(Windowsだと`cmd.exe`で実行される)\n\nVFileでやるのが賢い感じ。\n\nUnifiedの既存のフィルタ、ほぼESMみたい。\nたまにtypesが変なやつがあってTypeScriptだとちょっと辛い。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheiwa4126%2Funified-plugin-tutorial-js1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheiwa4126%2Funified-plugin-tutorial-js1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheiwa4126%2Funified-plugin-tutorial-js1/lists"}