{"id":20590013,"url":"https://github.com/doist/remark-application-links","last_synced_at":"2026-03-07T16:04:20.405Z","repository":{"id":42702984,"uuid":"300606066","full_name":"Doist/remark-application-links","owner":"Doist","description":"remark plugin to detect and parse application links","archived":false,"fork":false,"pushed_at":"2025-11-19T09:25:05.000Z","size":523,"stargazers_count":2,"open_issues_count":11,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-12-09T00:27:27.387Z","etag":null,"topics":["hacktoberfest","markdown","rehype","remark","remark-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/Doist.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-10-02T12:22:30.000Z","updated_at":"2025-11-19T09:23:20.000Z","dependencies_parsed_at":"2024-11-16T07:33:52.644Z","dependency_job_id":"9065cee0-565d-43b2-8bdb-ced37f7c39c2","html_url":"https://github.com/Doist/remark-application-links","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/Doist/remark-application-links","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doist%2Fremark-application-links","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doist%2Fremark-application-links/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doist%2Fremark-application-links/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doist%2Fremark-application-links/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Doist","download_url":"https://codeload.github.com/Doist/remark-application-links/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doist%2Fremark-application-links/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30221193,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T14:02:48.375Z","status":"ssl_error","status_checked_at":"2026-03-07T14:02:43.192Z","response_time":53,"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":["hacktoberfest","markdown","rehype","remark","remark-plugin"],"created_at":"2024-11-16T07:33:36.797Z","updated_at":"2026-03-07T16:04:20.375Z","avatar_url":"https://github.com/Doist.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![logo](./.github/logo.png)\n\n# remark-application-links\n\nYou want to allow your users to directly link deeply into their favorite applications like Notion or Mail. Per default remark only supports a handful of valid protocols when parsing links from text which makes this impossible. With the **remark-application-links** plugin you can support all the schemes and specify a block list of potentially dangerous ones.\n\nTurn\n\n```md\nHere's a link to my notion: notion://notion.so/user/123\n```\n\ninto\n\n```html\n\u003cp\u003e\n    Here's a link to my notion:\n    \u003ca href=\"notion://notion.so/user/123\"\u003enotion://notion.so/user/123\u003c/a\u003e\n\u003c/p\u003e\n```\n\nMake sure you understand the security implications before using this plugin: [Security](#security)\n\nHeavily inspired by [remark-linkify-regex](https://gitlab.com/staltz/remark-linkify-regex) but different enough to justify a separate plugin.\n\nBootstrapped and built with [tsdx](https://github.com/formium/tsdx).\n\n## Installation\n\nUse [npm](https://www.npmjs.com/get-npm) or [yarn](https://yarnpkg.com/lang/en/docs/install/) to install:\n\n```sh\nnpm install @doist/remark-application-links\n# or\nyarn add @doist/remark-application-links\n```\n\n## Usage\n\nThis plugin exposes a function which you need to call with the blocked URL schemes (or with nothing to accept the default ones).\n\n```js\nremark().use(remarkApplicationLinksPlugin())\n// or with custom schemes\nremark().use(remarkApplicationLinksPlugin(['javascript', 'notion']))\n```\n\n## Security\n\nSince this plugin is using a block list of URL schemes instead of explictly allowing explicit ones it potentially opens up your application for attackers. The general stance in the security community is that a complete block list is hard (read: impossible) to achieve. If you want to be on the safe side it's better to rely on an explicit allow list of supported URL schemes.\n\nPer default we're blocking these url schemes:\n\n```js\nconst blockedUrlSchemes = ['data', 'jar', 'java', 'javascript', 'vbscript', 'view-source']\n```\n\nIn general it's recommended to not only rely on your parser to prevent inline script executions but apply a Content-Security Policy (CSP) on your page as reliable catch-all.\n\nYou're advised to thoroughly test your use cases to not open your users up to [cross-site scripting (XSS)](https://en.wikipedia.org/wiki/Cross-site_scripting) attacks. You might find additional tools like [rehype-sanitize](https://github.com/rehypejs/rehype-sanitize) helpful.\n\n### Markdown links and react-markdown\n\nThis plugin will transform this text:\n\n```md\n[link](\u003cjavascript:alert(1)\u003e)\n```\n\ninto\n\n```html\n\u003cp\u003e\u003ca href=\"javascript:alert(1)\"\u003elink\u003c/a\u003e\u003c/p\u003e\n```\n\nWhich is dangerous as it would execute JavaScript. If you allow users to enter the text this will open you up to cross-site scripting (XSS) attacks. As mentioned above a strong CSP will protect you from this and not allow the JavaScript to execute.\n\nThis plugin can be used in combination with [react-markdown](https://github.com/rexxars/react-markdown). In order to prevent the example above being parsed as a link you need to supply the `transformLinkUri` prop.\n\n## Changelog\n\nWe're maintaining a [changelog](./CHANGELOG.md) in this repository. Our versioning follows [semantic versioning](https://semver.org/).\n\n## Releasing\n\nA new version of remark-application-links is published both on npm and GitHub Package Registry whenever a new release on GitHub is created. A GitHub Action will automatically perform all the necessary steps.\n\nThe Action will release the version number that's specified inside the `package.json`'s `version` field so make sure that it reflects the version you want to publish. Additionally, the Action can be triggered manually in case something went wrong in the automation.\n\n## Contributing\n\nContributions are welcome. Check our [contributing guide](./CONTRIBUTING.md).\n\n## License\n\nThis project is distributed under the [MIT License](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoist%2Fremark-application-links","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoist%2Fremark-application-links","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoist%2Fremark-application-links/lists"}