{"id":28573681,"url":"https://github.com/remarkjs/remark-unlink","last_synced_at":"2025-10-07T17:02:36.281Z","repository":{"id":46259617,"uuid":"42546955","full_name":"remarkjs/remark-unlink","owner":"remarkjs","description":"plugin to remove all links, images, references, and definitions","archived":false,"fork":false,"pushed_at":"2023-09-20T15:21:06.000Z","size":97,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-07-09T07:03:36.177Z","etag":null,"topics":["definition","image","link","mdast","reference","remark","remark-plugin","remove"],"latest_commit_sha":null,"homepage":"https://remark.js.org","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/remarkjs.png","metadata":{"funding":{"github":"unifiedjs","open_collective":"unified"},"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}},"created_at":"2015-09-15T21:13:41.000Z","updated_at":"2024-07-05T13:14:02.000Z","dependencies_parsed_at":"2024-06-18T22:43:19.888Z","dependency_job_id":"a5cbc090-96cb-46b1-9da9-52d626d6c990","html_url":"https://github.com/remarkjs/remark-unlink","commit_stats":{"total_commits":95,"total_committers":3,"mean_commits":"31.666666666666668","dds":0.1473684210526316,"last_synced_commit":"7c6b7a3f491100e4635a21acf80836d6f7483617"},"previous_names":["eush77/mdast-unlink"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/remarkjs/remark-unlink","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remarkjs%2Fremark-unlink","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remarkjs%2Fremark-unlink/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remarkjs%2Fremark-unlink/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remarkjs%2Fremark-unlink/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/remarkjs","download_url":"https://codeload.github.com/remarkjs/remark-unlink/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remarkjs%2Fremark-unlink/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268715000,"owners_count":24295259,"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","status":"online","status_checked_at":"2025-08-04T02:00:09.867Z","response_time":79,"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":["definition","image","link","mdast","reference","remark","remark-plugin","remove"],"created_at":"2025-06-10T21:19:03.326Z","updated_at":"2025-10-07T17:02:36.252Z","avatar_url":"https://github.com/remarkjs.png","language":"JavaScript","funding_links":["https://github.com/sponsors/unifiedjs","https://opencollective.com/unified"],"categories":[],"sub_categories":[],"readme":"# remark-unlink\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n[![Sponsors][sponsors-badge]][collective]\n[![Backers][backers-badge]][collective]\n[![Chat][chat-badge]][chat]\n\n**[remark][]** plugin to remove all links, images, references, and definitions.\n\n## Contents\n\n*   [What is this?](#what-is-this)\n*   [When should I use this?](#when-should-i-use-this)\n*   [Install](#install)\n*   [Use](#use)\n*   [API](#api)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Security](#security)\n*   [Contribute](#contribute)\n*   [License](#license)\n\n## What is this?\n\nThis package is a [unified][] ([remark][]) plugin to remove all links and\nimages.\n\n## When should I use this?\n\nThis project is useful if you display markdown documents somewhere where links\nand images don’t work, such as man pages, on paper, or some ereaders.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 16+), install with [npm][]:\n\n```sh\nnpm install remark-unlink\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport remarkUnlink from 'https://esm.sh/remark-unlink@5'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n\u003cscript type=\"module\"\u003e\n  import remarkUnlink from 'https://esm.sh/remark-unlink@5?bundle'\n\u003c/script\u003e\n```\n\n## Use\n\nSay we have the following file `example.md`.\n\n```markdown\n# Uranus\n\n**Uranus** is the seventh [planet](/wiki/Planet \"Planet\") from the Sun and is a\ngaseous cyan [ice giant](/wiki/Ice_giant \"Ice giant\").\n\nPhotograph of Uranus in true colour by Voyager 2 in 1986:\n\n![This is an image of the planet Uranus taken by the spacecraft Voyager 2 in 1986.\nThe Voyager project is managed for NASA by the Jet Propulsion Laboratory.](https://en.wikipedia.org/wiki/Uranus#/media/File:Uranus_as_seen_by_NASA's_Voyager_2_(remastered)_-_JPEG_converted.jpg)\n```\n\n…and a module `example.js`:\n\n```js\nimport {remark} from 'remark'\nimport remarkUnlink from 'remark-unlink'\nimport {read} from 'to-vfile'\n\nconst file = await remark()\n  .use(remarkUnlink)\n  .process(await read('example.md'))\n\nconsole.log(String(file))\n```\n\n…then running `node example.js` yields:\n\n```markdown\n# Uranus\n\n**Uranus** is the seventh planet from the Sun and is a\ngaseous cyan ice giant.\n\nPhotograph of Uranus in true colour by Voyager 2 in 1986:\n\nThis is an image of the planet Uranus taken by the spacecraft Voyager 2 in\n1986\\.\nThe Voyager project is managed for NASA by the Jet Propulsion\nLaboratory.\n```\n\n## API\n\nThis package exports no identifiers.\nThe default export is [`remarkUnlink`][api-remark-unlink].\n\n#### `unified().use(remarkUnlink)`\n\nRemove all links, images, references, and definitions.\n\n###### Parameters\n\nThere are no parameters.\n\n###### Returns\n\nTransform ([`Transformer`][unified-transformer]).\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports no additional types.\n\n## Compatibility\n\nProjects maintained by the unified collective are compatible with maintained\nversions of Node.js.\n\nWhen we cut a new major release, we drop support for unmaintained versions of\nNode.\nThis means we try to keep the current release line, `remark-unlink@^5`,\ncompatible with Node.js 16.\n\nThis plugin works with `unified` version 3+ and `remark` version 4+.\n\n## Security\n\nUse of `remark-unlink` does not involve **[rehype][]** (**[hast][]**) or user\ncontent so there are no openings for [cross-site scripting (XSS)][wiki-xss]\nattacks.\n\n## Contribute\n\nSee [`contributing.md`][contributing] in [`remarkjs/.github`][health] for ways\nto get started.\nSee [`support.md`][support] for ways to get help.\n\nThis project has a [code of conduct][coc].\nBy interacting with this repository, organization, or community you agree to\nabide by its terms.\n\n## License\n\n[MIT][license] © Eugene Sharygin\n\n[build-badge]: https://github.com/remarkjs/remark-unlink/workflows/main/badge.svg\n\n[build]: https://github.com/remarkjs/remark-unlink/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/remarkjs/remark-unlink.svg\n\n[coverage]: https://codecov.io/github/remarkjs/remark-unlink\n\n[downloads-badge]: https://img.shields.io/npm/dm/remark-unlink.svg\n\n[downloads]: https://www.npmjs.com/package/remark-unlink\n\n[size-badge]: https://img.shields.io/bundlejs/size/remark-unlink\n\n[size]: https://bundlejs.com/?q=remark-unlink\n\n[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg\n\n[backers-badge]: https://opencollective.com/unified/backers/badge.svg\n\n[collective]: https://opencollective.com/unified\n\n[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg\n\n[chat]: https://github.com/remarkjs/remark/discussions\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[esmsh]: https://esm.sh\n\n[health]: https://github.com/remarkjs/.github\n\n[contributing]: https://github.com/remarkjs/.github/blob/main/contributing.md\n\n[support]: https://github.com/remarkjs/.github/blob/main/support.md\n\n[coc]: https://github.com/remarkjs/.github/blob/main/code-of-conduct.md\n\n[license]: license\n\n[hast]: https://github.com/syntax-tree/hast\n\n[rehype]: https://github.com/rehypejs/rehype\n\n[remark]: https://github.com/remarkjs/remark\n\n[typescript]: https://www.typescriptlang.org\n\n[unified]: https://github.com/unifiedjs/unified\n\n[unified-transformer]: https://github.com/unifiedjs/unified#transformer\n\n[wiki-xss]: https://en.wikipedia.org/wiki/Cross-site_scripting\n\n[api-remark-unlink]: #unifieduseremarkunlink\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremarkjs%2Fremark-unlink","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fremarkjs%2Fremark-unlink","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremarkjs%2Fremark-unlink/lists"}