{"id":16439286,"url":"https://github.com/posva/markdown-it-custom-block","last_synced_at":"2025-05-08T19:29:44.927Z","repository":{"id":20657263,"uuid":"90538310","full_name":"posva/markdown-it-custom-block","owner":"posva","description":"Handle custom blocks transformations for markdown-it","archived":false,"fork":false,"pushed_at":"2025-04-28T08:40:40.000Z","size":267,"stargazers_count":62,"open_issues_count":2,"forks_count":15,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-28T09:58:24.433Z","etag":null,"topics":[],"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/posva.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/funding.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","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},"funding":{"github":"posva"}},"created_at":"2017-05-07T14:26:45.000Z","updated_at":"2025-04-28T08:40:38.000Z","dependencies_parsed_at":"2024-02-14T20:32:16.502Z","dependency_job_id":"14266327-8e28-4a8e-8411-a9049c648293","html_url":"https://github.com/posva/markdown-it-custom-block","commit_stats":{"total_commits":95,"total_committers":6,"mean_commits":"15.833333333333334","dds":0.6631578947368422,"last_synced_commit":"a9d1db480d63c6e217963506ba6a22cb9cea3193"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posva%2Fmarkdown-it-custom-block","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posva%2Fmarkdown-it-custom-block/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posva%2Fmarkdown-it-custom-block/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posva%2Fmarkdown-it-custom-block/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/posva","download_url":"https://codeload.github.com/posva/markdown-it-custom-block/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253135115,"owners_count":21859566,"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-10-11T09:08:47.558Z","updated_at":"2025-05-08T19:29:44.892Z","avatar_url":"https://github.com/posva.png","language":"JavaScript","funding_links":["https://github.com/sponsors/posva"],"categories":[],"sub_categories":[],"readme":"# markdown-it-custom-block\n\n\u003e Handle custom blocks transformations\n\n## Usage\n\n```js\nimport customBlock from 'markdown-it-custom-block'\n\nmarkdownit().use(customBlock, {\n  example(arg) {\n    return `\u003cexample-${arg}/\u003e`\n  },\n  video(url) {\n    return `\u003cvideo controls\u003e\n        \u003csource src=\"${url}\" type=\"video/mp4\"\u003e\n      \u003c/video\u003e`\n  },\n})\n```\n\n```md\n@[example](hello)\n\n@[video](video.mp4)\n```\n\nbecomes\n\n```html\n\u003cexample-hello /\u003e\n\u003cvideo controls\u003e\n  \u003csource src=\"video.mp4\" type=\"video/mp4\" /\u003e\n\u003c/video\u003e\n```\n\n## License\n\n[MIT](http://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposva%2Fmarkdown-it-custom-block","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fposva%2Fmarkdown-it-custom-block","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposva%2Fmarkdown-it-custom-block/lists"}