{"id":20790716,"url":"https://github.com/markedjs/marked-custom-heading-id","last_synced_at":"2025-05-05T20:50:31.054Z","repository":{"id":36985951,"uuid":"367247385","full_name":"markedjs/marked-custom-heading-id","owner":"markedjs","description":"Add custom id to headings with {#...} syntax","archived":false,"fork":false,"pushed_at":"2025-05-05T01:51:16.000Z","size":5941,"stargazers_count":8,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-05T02:35:42.958Z","etag":null,"topics":["custom","extension","heading","id","marked"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/marked-custom-heading-id","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/markedjs.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":"2021-05-14T04:21:23.000Z","updated_at":"2025-05-05T01:51:13.000Z","dependencies_parsed_at":"2023-10-02T02:40:47.977Z","dependency_job_id":"23091e0a-be88-45bc-9e04-1f6eaf60ce72","html_url":"https://github.com/markedjs/marked-custom-heading-id","commit_stats":{"total_commits":286,"total_committers":4,"mean_commits":71.5,"dds":0.06293706293706292,"last_synced_commit":"f9d1206f9967433c96e442c653c25811f59fb00b"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":"markedjs/marked-extension-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markedjs%2Fmarked-custom-heading-id","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markedjs%2Fmarked-custom-heading-id/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markedjs%2Fmarked-custom-heading-id/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markedjs%2Fmarked-custom-heading-id/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markedjs","download_url":"https://codeload.github.com/markedjs/marked-custom-heading-id/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252575893,"owners_count":21770648,"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":["custom","extension","heading","id","marked"],"created_at":"2024-11-17T15:37:06.646Z","updated_at":"2025-05-05T20:50:31.027Z","avatar_url":"https://github.com/markedjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# marked-custom-heading-id\n\nSpecify a custom heading id in headings with the [Markdown Extended Syntax](https://www.markdownguide.org/extended-syntax/#heading-ids) `# heading {#custom-id}`\n\nThe heading will be rendered with the string between `{#` and `}`\n\nThe id must be a valid id with the following criteria:\n\n  - Must start with a letter (`A-Z`, `a-z`)\n  - Must only contain word characters (`A-Z`, `a-z`, `0-9`, `_`) or dashes (`-`)\n\n# Usage\n\n```js\nimport { marked } from \"marked\";\nimport customHeadingId from \"marked-custom-heading-id\";\n\n// or UMD script\n// \u003cscript src=\"https://cdn.jsdelivr.net/npm/marked/lib/marked.umd.js\"\u003e\u003c/script\u003e\n// \u003cscript src=\"https://cdn.jsdelivr.net/npm/marked-custom-heading-id/lib/index.umd.js\"\u003e\u003c/script\u003e\n\nmarked.use(customHeadingId());\n\nmarked(\"# heading {#custom-id}\");\n// \u003ch1 id=\"custom-id\"\u003eheading\u003c/h1\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkedjs%2Fmarked-custom-heading-id","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkedjs%2Fmarked-custom-heading-id","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkedjs%2Fmarked-custom-heading-id/lists"}