{"id":19749073,"url":"https://github.com/vincentbel/remark-pangu","last_synced_at":"2025-04-30T08:34:30.687Z","repository":{"id":47119450,"uuid":"102876106","full_name":"vincentbel/remark-pangu","owner":"vincentbel","description":"给 Markdown 中英文自动插入空格的 remark 插件","archived":false,"fork":false,"pushed_at":"2020-10-25T14:45:53.000Z","size":207,"stargazers_count":30,"open_issues_count":5,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-10T02:34:46.581Z","etag":null,"topics":["pangu","remark","remark-plugin","text-spacing"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/vincentbel.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":"2017-09-08T15:28:26.000Z","updated_at":"2024-11-02T14:04:21.000Z","dependencies_parsed_at":"2022-09-20T22:32:16.148Z","dependency_job_id":null,"html_url":"https://github.com/vincentbel/remark-pangu","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincentbel%2Fremark-pangu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincentbel%2Fremark-pangu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincentbel%2Fremark-pangu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincentbel%2Fremark-pangu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vincentbel","download_url":"https://codeload.github.com/vincentbel/remark-pangu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224204382,"owners_count":17273111,"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":["pangu","remark","remark-plugin","text-spacing"],"created_at":"2024-11-12T02:24:52.966Z","updated_at":"2024-11-12T02:24:53.619Z","avatar_url":"https://github.com/vincentbel.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# remark-pangu\n\n[![travis build](https://img.shields.io/travis/VincentBel/remark-pangu.svg?style=flat-square)](https://travis-ci.org/VincentBel/remark-pangu)\n[![version](https://img.shields.io/npm/v/remark-pangu.svg?style=flat-square)](http://npm.im/remark-pangu)\n[![MIT License](https://img.shields.io/npm/l/remark-pangu.svg?style=flat-square)](http://opensource.org/licenses/MIT)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](https://github.com/semantic-release/semantic-release)\n\n给 Markdown 中英文自动插入空格的 [remark](https://github.com/wooorm/remark) 插件（使用 [pangu.js](https://github.com/vinta/pangu.js)）。\n\n## Install\n\n```bash\nnpm install remark-pangu\n```\n\n## Usage\n\n```js\nremark().use(pangu)\n```\n\n```js\nconst remark = require('remark')\nconst pangu = require('remark-pangu')\n\nconst doc = '中文abc中文';\nremark().use(pangu).process(doc, (err, file) =\u003e {\n  console.log(String(file));\n});\n// =\u003e 中文 abc 中文\n```\n\n### Options\n\n可以通过设置 options 控制是否处理不同类型的 Markdown 节点。\n\n例如，此插件默认不处理 `inline code`，可以设置 `inlineCode: true` 开启处理：\n\n```js\nremark().use(pangu, {\n  inlineCode: true\n})\n```\n\n#### Default Options\n\n```js\n{\n  text: true,\n  inlineCode: false,\n  link: true,\n  image: true,\n  imageReference: true,\n  definition: true,\n}\n```\n\n## LICENSE\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvincentbel%2Fremark-pangu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvincentbel%2Fremark-pangu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvincentbel%2Fremark-pangu/lists"}