{"id":21706347,"url":"https://github.com/samiahmedsiddiqui/remarkable-external-link","last_synced_at":"2026-01-20T08:03:09.408Z","repository":{"id":44618393,"uuid":"259285911","full_name":"samiahmedsiddiqui/remarkable-external-link","owner":"samiahmedsiddiqui","description":"Remarkable plugin adds target and rel attributes on external links.","archived":false,"fork":false,"pushed_at":"2024-06-18T01:45:05.000Z","size":297,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-20T19:51:35.707Z","etag":null,"topics":["docusaurus","external-link","markdown","markdown-plugin","remarkable","remarkable-plugin"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/remarkable-external-link","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/samiahmedsiddiqui.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-04-27T10:52:42.000Z","updated_at":"2024-04-16T03:01:05.000Z","dependencies_parsed_at":"2024-10-13T20:00:40.296Z","dependency_job_id":"7a12aaab-c123-4e30-94fa-e8d7aeaeb80e","html_url":"https://github.com/samiahmedsiddiqui/remarkable-external-link","commit_stats":{"total_commits":48,"total_committers":3,"mean_commits":16.0,"dds":0.04166666666666663,"last_synced_commit":"2ec4cec216bf589f20db35a5119184bf48c8a41c"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/samiahmedsiddiqui/remarkable-external-link","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samiahmedsiddiqui%2Fremarkable-external-link","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samiahmedsiddiqui%2Fremarkable-external-link/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samiahmedsiddiqui%2Fremarkable-external-link/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samiahmedsiddiqui%2Fremarkable-external-link/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samiahmedsiddiqui","download_url":"https://codeload.github.com/samiahmedsiddiqui/remarkable-external-link/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samiahmedsiddiqui%2Fremarkable-external-link/sbom","scorecard":{"id":797532,"data":{"date":"2025-08-11","repo":{"name":"github.com/samiahmedsiddiqui/remarkable-external-link","commit":"2ec4cec216bf589f20db35a5119184bf48c8a41c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Code-Review","score":0,"reason":"Found 1/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 5 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T09:26:25.638Z","repository_id":44618393,"created_at":"2025-08-23T09:26:25.638Z","updated_at":"2025-08-23T09:26:25.638Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28598875,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T02:08:49.799Z","status":"ssl_error","status_checked_at":"2026-01-20T02:08:44.148Z","response_time":117,"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":["docusaurus","external-link","markdown","markdown-plugin","remarkable","remarkable-plugin"],"created_at":"2024-11-25T22:12:32.298Z","updated_at":"2026-01-20T08:03:09.390Z","avatar_url":"https://github.com/samiahmedsiddiqui.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# remarkable-external-link\n\n[![NPM version][npm-image]][npm-url]\n[![Downloads][downloads-image]][npm-url]\n[![AppVeyor Build Status][appveyor-image]][appveyor-url]\n\u003c!-- [![Build Status][travis-image]][travis-url] --\u003e\n\n[Remarkable](https://www.npmjs.com/package/remarkable) plugin that adds `target` and `rel` attributes on external links. It also provides ability to insert Text/HTML inside and/or outside a link for external links or for all the links (including external) depending on your configuration.\n\n## Install\n\nVia `npm`\n\n```bash\nnpm install remarkable-external-link --save-dev\n```\n\nVia Yarn\n\n```bash\nyarn add remarkable-external-link --dev\n```\n\n## Usage\n\n```javascript\nconst { Remarkable } = require('remarkable');\nconst remarkableExternalLink = require('remarkable-external-link').default;\nconst md = new Remarkable();\n\nconst testString = 'This is an [Example](http://example.com) link, [Google](https://google.com) link, [Facebook](https://facebook.com) link, [Test Example](http://test.example.com/) link, [Test2 Example](http://test2.example.com/) link and [Relative](/docs/concept/) link.';\n\n// Mark http://example.com and http://test.example.com as internal domain.\nmd.use(remarkableExternalLink, {\n  'hosts': [\n    'http://example.com',\n    'http://test.example.com'\n  ]\n});\n\nconst output = console.log(md.render(testString));\n```\n\nOr With Docusaurus:\n\n```javascript\nconst remarkableExternalLink = require('remarkable-external-link').default;\nconst siteConfig = {\n  ...\n\n  markdownPlugins: [\n    function (md) {\n      remarkableExternalLink(md, {\n        'hosts': [\n          'http://example.com',\n          'http://test.example.com'\n        ]\n      });\n    }\n  ]\n\n  ...\n}\n```\n\nOr with text insertion:\n\n```javascript\nmd.use(remarkableExternalLink, {\n  'beforeLink': '[',\n  'beforeLinkText': '-=',\n  'afterLinkText': '=-',\n  'afterLink': '] (ext)',\n});\n\n\nconst testString = 'This is an [Example](http://example.com) link.';\nconsole.log(md.render(testString));\n```\n\nAbove code will change the HTML display from\n\n```html\n\u003cp\u003eThis is an [\u003ca href=\"http://example.com\"\u003e-= Example =-\u003c/a\u003e] (ext) link.\u003c/p\u003e\n```\n\nto\n\n```html\n\u003cp\u003eThis is an [\u003ca href=\"http://example.com\"\u003e-= Example =-\u003c/a\u003e] (ext) link.\u003c/p\u003e\n```\n\n## Parameters\n\n|   Attributes   |  Type  | Required |   Default  |                                    Description                                   |\n|:--------------:|:------:|:--------:|:----------:|:--------------------------------------------------------------------------------:|\n|      hosts     |  Array |    Yes   |     []     | Site hostname(s) to detect external links.                                       |\n|     target     | String |    No    |  `_blank`  | Specifies where to open the linked document.                                     |\n|       rel      | String |    No    | `noopener` | Specifies the relationship between the current document and the linked document. |\n|  externalOnly  | String |    No    |    true    | Prepend / append text only to external links.                                    |\n|   beforeLink   | String |    No    |    null    | Specifies Text / HTML to be inserted before a link.                              |\n| beforeLinkText | String |    No    |    null    | Specifies Text / HTML to be inserted at the start of the text within a link.     |\n|  afterLinkText | String |    No    |    null    | Specifies Text / HTML to be inserted at the end of the text within a link.       |\n|    afterLink   | String |    No    |    null    | Specifies Text / HTML to be inserted after a link.                               |\n\n[npm-image]: https://img.shields.io/npm/v/remarkable-external-link.svg\n[npm-url]: https://www.npmjs.com/package/remarkable-external-link\n[downloads-image]: https://img.shields.io/npm/dm/remarkable-external-link.svg\n\n\u003c!-- [travis-image]: https://travis-ci.org/samiahmedsiddiqui/remarkable-external-link.svg?branch=master\n[travis-url]: https://travis-ci.org/github/samiahmedsiddiqui/remarkable-external-link --\u003e\n\n[appveyor-url]: https://ci.appveyor.com/project/samiahmedsiddiqui/remarkable-external-link\n[appveyor-image]: https://img.shields.io/appveyor/ci/samiahmedsiddiqui/remarkable-external-link.svg?label=appveyor\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamiahmedsiddiqui%2Fremarkable-external-link","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamiahmedsiddiqui%2Fremarkable-external-link","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamiahmedsiddiqui%2Fremarkable-external-link/lists"}