{"id":21625776,"url":"https://github.com/debbl/remark-headerify","last_synced_at":"2026-04-10T17:27:25.190Z","repository":{"id":198803799,"uuid":"701583753","full_name":"Debbl/remark-headerify","owner":"Debbl","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-20T02:04:37.000Z","size":438,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-24T22:41:22.216Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/Debbl.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":"2023-10-07T01:30:12.000Z","updated_at":"2023-10-07T01:30:19.000Z","dependencies_parsed_at":"2025-01-24T22:41:35.082Z","dependency_job_id":"cb21b249-1746-40eb-a204-75f6be43a023","html_url":"https://github.com/Debbl/remark-headerify","commit_stats":null,"previous_names":["debbl/remark-headerify"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Debbl%2Fremark-headerify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Debbl%2Fremark-headerify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Debbl%2Fremark-headerify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Debbl%2Fremark-headerify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Debbl","download_url":"https://codeload.github.com/Debbl/remark-headerify/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244297908,"owners_count":20430347,"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":[],"created_at":"2024-11-25T01:10:35.938Z","updated_at":"2025-12-31T00:14:34.018Z","avatar_url":"https://github.com/Debbl.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# remark headerify\n\n## Install with Nextjs\n\n```bash\npnpm i remark-headerify -D\n```\n\n## Usage\n\n- only use for nextjs with mdx\n\n- parse frontmatter config for Header component and Main component\n\n\u003e info.md\n\n```md\n---\n    title: Info\n---\n\n# Info\n```\n\n## parse\n```md\n---\n    title: Info\n---\n\u003cHeader title=\"Info\"\u003e\n\u003c/Header\u003e\n\u003cMain\u003e\n# Info\n\u003c/Main\u003e\n```\n\n\u003e mdx-components.tsx\n\n```tsx\nimport type { MDXComponents } from \"mdx/types\";\nimport Header from \"./components/Header\";\n\nexport function useMDXComponents(components: MDXComponents): MDXComponents {\n  return {\n    Header: (props: { title: string }) =\u003e {\n      const { title = \"\" } = props;\n\n      return \u003cHeader title={title} /\u003e;\n    },\n    Main: ({ children }: { children: React.ReactNode }) =\u003e {\n      return \u003cmain className=\"markdown-body\"\u003e{children}\u003c/main\u003e;\n    },\n\n    ...components,\n  };\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdebbl%2Fremark-headerify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdebbl%2Fremark-headerify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdebbl%2Fremark-headerify/lists"}