{"id":16997150,"url":"https://github.com/finnrg/remark-mentions","last_synced_at":"2025-07-12T08:38:05.486Z","repository":{"id":185334755,"uuid":"673382796","full_name":"FinnRG/remark-mentions","owner":"FinnRG","description":"remark plugin to replace @ mentions with links","archived":false,"fork":false,"pushed_at":"2024-07-29T14:31:54.000Z","size":101,"stargazers_count":9,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T13:19:18.284Z","etag":null,"topics":["markdown","mention","mentions","remark","remark-plugin"],"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/FinnRG.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-01T13:55:22.000Z","updated_at":"2025-03-12T13:02:30.000Z","dependencies_parsed_at":"2024-07-29T18:39:27.069Z","dependency_job_id":"6d6edd2f-b5bb-48cc-82d9-b34aef543c72","html_url":"https://github.com/FinnRG/remark-mentions","commit_stats":null,"previous_names":["finnrg/remark-mentions"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FinnRG%2Fremark-mentions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FinnRG%2Fremark-mentions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FinnRG%2Fremark-mentions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FinnRG%2Fremark-mentions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FinnRG","download_url":"https://codeload.github.com/FinnRG/remark-mentions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244978571,"owners_count":20541875,"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":["markdown","mention","mentions","remark","remark-plugin"],"created_at":"2024-10-14T03:54:05.791Z","updated_at":"2025-03-22T15:31:08.070Z","avatar_url":"https://github.com/FinnRG.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# remark-mentions\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n\n## What is this?\n\nThis package is a [unified][unified-link] ([remark][remark-link]) plugin to convert @ mentions to links: `@wooorm` -\u003e `[**@wooorm**](https://github.com/wooorm)`.\n\n**unified** is a project that transforms content with abstract syntax trees\n(ASTs).\n**remark** adds support for markdown to unified.\n**mdast** is the markdown AST that remark uses.\nThis is a remark plugin that transforms mdast.\n\n## Install\n\n```sh\nnpm install remark-mentions\n```\n\n## Usage\n\n```js\nimport {remark} from 'remark'\nimport remarkMentions from 'remark-mentions'\n\nconst markdown = \"Hello @user!\";\n\nconst file = await remark()\n  .use(remarkMentions, {\n    usernameLink: (username) =\u003e `/User/Profile/${username}`, // This is optional\n  })\n  .process(markdown)\n\nconsole.log(String(file))\n```\n\n\u003c!-- Definitions --\u003e\n\n[build-badge]: https://github.com/finnrg/remark-mentions/workflows/main/badge.svg\n\n[build]: https://github.com/finnrg/remark-mentions/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/finnrg/remark-mentions.svg\n\n[coverage]: https://codecov.io/github/finnrg/remark-mentions\n\n[unified-link]: https://github.com/unifiedjs/unified\n\n[remark-link]: https://github.com/remarkjs/remark\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffinnrg%2Fremark-mentions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffinnrg%2Fremark-mentions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffinnrg%2Fremark-mentions/lists"}