{"id":22799058,"url":"https://github.com/thomd/remark-wiki-link","last_synced_at":"2026-02-07T11:04:10.797Z","repository":{"id":250002116,"uuid":"833185619","full_name":"thomd/remark-wiki-link","owner":"thomd","description":"remark plugin to translate [[url|name]] to [name](url)","archived":false,"fork":false,"pushed_at":"2025-01-14T22:23:26.000Z","size":60,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-27T13:10:43.674Z","etag":null,"topics":["markdown","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/thomd.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,"zenodo":null}},"created_at":"2024-07-24T14:19:10.000Z","updated_at":"2025-05-21T06:42:06.000Z","dependencies_parsed_at":"2024-07-24T17:15:34.480Z","dependency_job_id":"e09a9120-b96b-4253-a458-bbb255935696","html_url":"https://github.com/thomd/remark-wiki-link","commit_stats":null,"previous_names":["thomd/remark-wiki-link"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thomd/remark-wiki-link","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomd%2Fremark-wiki-link","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomd%2Fremark-wiki-link/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomd%2Fremark-wiki-link/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomd%2Fremark-wiki-link/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thomd","download_url":"https://codeload.github.com/thomd/remark-wiki-link/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomd%2Fremark-wiki-link/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29193089,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T07:37:03.739Z","status":"ssl_error","status_checked_at":"2026-02-07T07:37:03.029Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["markdown","remark","remark-plugin"],"created_at":"2024-12-12T07:07:49.299Z","updated_at":"2026-02-07T11:04:10.781Z","avatar_url":"https://github.com/thomd.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# remark-wiki-link\n\n![Build](https://github.com/thomd/remark-wiki-link/workflows/plugin-test/badge.svg)\n\n`remark-wiki-link` is a [remark](https://github.com/remarkjs/remark) plugin which translates\n\n    [[page]]\n    [[page#headline]]\n    [[page|name]]\n\nto\n\n    \u003ca href=\"page\"\u003epage\u003c/a\u003e\n    \u003ca href=\"page#headline\"\u003eheadline\u003c/a\u003e\n    \u003ca href=\"page\"\u003ename\u003c/a\u003e\n\nThe `[[...]]` syntax is a custom markdown syntax typically used in **wiki** systems to have links to other wiki pages or to have in-page links.\n\n## Usage\n\nGiven the following file `example.md`:\n\n```markdown\n# Headline\n\nparagraph with [[my page|name]] link\n```\n\nand a module `example.js`:\n\n```js\nimport { remark } from 'remark'\nimport remarkWikiLink from 'remark-wiki-link'\nimport remarkRehype from 'remark-rehype'\nimport rehypeStringify from 'rehype-stringify'\nimport { read } from 'to-vfile'\n\nconst file = await remark()\n   .use(remarkWikiLink, { path: '/pages/', slugger: true })\n   .use(remarkRehype)\n   .use(rehypeStringify)\n   .process(await read('example.md'))\n\nconsole.log(file.value)\n```\n\nthen running `node example.js` yields:\n\n```html\n\u003ch1\u003eHeadline\u003c/h1\u003e\n\u003cp\u003eparagraph with \u003ca href=\"/pages/my-page\"\u003ename\u003c/a\u003e link\u003c/p\u003e\n```\n\n## API\n\nThe default export is `remarkWikiLink`.\n\n### Options\n\n-  `path` (`string`, optional) — path to be preprended to the link url. Default is `''`.\n\n-  `slugger` (`Boolean`, optional) — Slug URLs using [github-slugger](https://github.com/Flet/github-slugger). Using the slugger has a minor flaw, if a page\n   has headlines with the same name and you want to have in-page links. Default is `false`.\n\n-  `trailingSlash` (`Boolean`, optional) — Add a trailing slash to URL. Default is `false`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomd%2Fremark-wiki-link","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthomd%2Fremark-wiki-link","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomd%2Fremark-wiki-link/lists"}