{"id":22908418,"url":"https://github.com/gaumala/simple-commonmark-react-router","last_synced_at":"2026-04-11T00:12:17.286Z","repository":{"id":83250370,"uuid":"92991760","full_name":"GAumala/simple-commonmark-react-router","owner":"GAumala","description":"Render Markdown links with React Router's navigation","archived":false,"fork":false,"pushed_at":"2017-06-04T04:00:22.000Z","size":61,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-07T05:25:56.605Z","etag":null,"topics":["commonmark","javascript","markdown","react","react-router","typescript"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GAumala.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-05-31T21:51:17.000Z","updated_at":"2017-06-01T22:39:08.000Z","dependencies_parsed_at":"2023-03-12T17:45:00.011Z","dependency_job_id":null,"html_url":"https://github.com/GAumala/simple-commonmark-react-router","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GAumala%2Fsimple-commonmark-react-router","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GAumala%2Fsimple-commonmark-react-router/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GAumala%2Fsimple-commonmark-react-router/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GAumala%2Fsimple-commonmark-react-router/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GAumala","download_url":"https://codeload.github.com/GAumala/simple-commonmark-react-router/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246620267,"owners_count":20806721,"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":["commonmark","javascript","markdown","react","react-router","typescript"],"created_at":"2024-12-14T03:29:06.274Z","updated_at":"2025-12-30T23:13:10.458Z","avatar_url":"https://github.com/GAumala.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple CommonMark React Router\n\n[![Build Status](https://travis-ci.org/GAumala/simple-commonmark-react-router.svg?branch=master)](https://travis-ci.org/GAumala/simple-commonmark-react-router) [![Coverage Status](https://coveralls.io/repos/github/GAumala/simple-commonmark-react-router/badge.svg?branch=master)](https://coveralls.io/github/GAumala/simple-commonmark-react-router?branch=master)\n\nEasily integrate [React Router](https://reacttraining.com/react-router/) with [simple-commonmark-react](https://github.com/GAumala/simple-commonmark-react)\n\n## Install\n\n```\nyarn add simple-commonmark-react-router\n```\n\n## Example\n\nThe following example renders markdown links with React Router's Link component.\n\n```javascript\nimport React from 'react'\nimport {\n  BrowserRouter as Router,\n  Route,\n} from 'react-router-dom'\nimport { renderNodes } from 'simple-commonmark-react'\nimport ReactRouterLinkRenderer from 'simple-commonmark-react-router'\n\nclass MarkdownComponent extends React.Component {\n  render() {\n    const source = this.props.markdownText\n    const markdownOptions = {\n      className: 'markdown',\n      customRenderers: { link: ReactRouterLinkRenderer }\n    }\n\n    return (\n      \u003cRouter\u003e\n        //Here you could put your routes\n        \u003cdiv\u003e\n          { renderNodes(source, markdownOptions) }  \n        \u003c/div\u003e\n      \u003c/Router\u003e\n    )\n  }  \n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaumala%2Fsimple-commonmark-react-router","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgaumala%2Fsimple-commonmark-react-router","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaumala%2Fsimple-commonmark-react-router/lists"}