{"id":15606264,"url":"https://github.com/tb/react-static-markdown","last_synced_at":"2025-06-28T18:34:48.206Z","repository":{"id":57345325,"uuid":"123827298","full_name":"tb/react-static-markdown","owner":"tb","description":"Markdown files utils for react-static","archived":false,"fork":false,"pushed_at":"2018-03-08T20:00:51.000Z","size":84,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T16:55:22.252Z","etag":null,"topics":["markdown","react","react-static"],"latest_commit_sha":null,"homepage":null,"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/tb.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}},"created_at":"2018-03-04T20:43:52.000Z","updated_at":"2019-03-11T13:21:48.000Z","dependencies_parsed_at":"2022-08-26T07:50:42.783Z","dependency_job_id":null,"html_url":"https://github.com/tb/react-static-markdown","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tb/react-static-markdown","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tb%2Freact-static-markdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tb%2Freact-static-markdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tb%2Freact-static-markdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tb%2Freact-static-markdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tb","download_url":"https://codeload.github.com/tb/react-static-markdown/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tb%2Freact-static-markdown/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262476986,"owners_count":23317390,"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","react","react-static"],"created_at":"2024-10-03T04:21:46.469Z","updated_at":"2025-06-28T18:34:48.188Z","avatar_url":"https://github.com/tb.png","language":"JavaScript","readme":"# [react-static-markdown](https://github.com/tb/react-static-markdown)\n\n[![Build Status](https://travis-ci.org/tb/react-static-markdown.svg?branch=master)](https://travis-ci.org/tb/react-static-markdown)\n[![npm version](https://badge.fury.io/js/react-static-markdown.svg)](http://badge.fury.io/js/react-static-markdown)\n\nMarkdown files utils for [react-static](https://github.com/nozzle/react-static)\n\n## Install\n\n    yarn add -D globby gray-matter mdxc mdx-loader\n    yarn add react react-static-markdown \n\n## Example usage with mdx-loader\n\nstatic.config.js\n\n    webpack: (config, {defaultLoaders, stage}) =\u003e {\n      config.resolve.extensions.push('.md');\n      config.module.rules = [\n        {\n          oneOf: [\n            {\n              test: /\\.md$/,\n              use: ['mdx-loader'],\n            },\n            defaultLoaders.cssLoader,\n            defaultLoaders.jsLoader,\n            defaultLoaders.fileLoader,\n          ],\n        },\n      ];\n      return config;\n    },\n\nUsage\n\n    import About from 'content/pages/about.md';\n    \n    ...\n\n    \u003cAbout /\u003e\n\n## Example usage without mdx-loader\n\nMarkdown is transformed to mdx js code string during `getRoutes` and then evaluated to component.\n\nstatic.config.js\n\n    const getFiles = require('react-static-mdx/getFilesWithMdx');\n    \n    ...\n    \n    const pages = await getFiles('content/pages/*.md');\n\nUsage\n\n    import mdxToComponent from 'react-static-mdx/mdxToComponent';\n    \n    ...\n    \n    const Page = mdxToComponent(page.contentmdx);\n    \n    ...\n    \n    \u003cPage {...props} /\u003e\n\n## License\n\nReact Static uses the MIT license. For more information on this license, [click here](https://github.com/tb/react-static-markdown/blob/master/LICENSE).\n ","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftb%2Freact-static-markdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftb%2Freact-static-markdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftb%2Freact-static-markdown/lists"}