{"id":29428938,"url":"https://github.com/show-docs/remark-block-directive","last_synced_at":"2026-02-26T02:36:52.774Z","repository":{"id":291722172,"uuid":"978590521","full_name":"show-docs/remark-block-directive","owner":"show-docs","description":"Remark plugin for turning HTML directive into MDX tags","archived":false,"fork":false,"pushed_at":"2025-05-06T08:15:23.000Z","size":70,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-17T10:02:14.283Z","etag":null,"topics":[],"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/show-docs.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":"2025-05-06T08:12:42.000Z","updated_at":"2025-05-06T08:16:35.000Z","dependencies_parsed_at":"2025-05-06T08:33:26.080Z","dependency_job_id":null,"html_url":"https://github.com/show-docs/remark-block-directive","commit_stats":null,"previous_names":["show-docs/remark-block-directive"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/show-docs/remark-block-directive","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/show-docs%2Fremark-block-directive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/show-docs%2Fremark-block-directive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/show-docs%2Fremark-block-directive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/show-docs%2Fremark-block-directive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/show-docs","download_url":"https://codeload.github.com/show-docs/remark-block-directive/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/show-docs%2Fremark-block-directive/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29848634,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T22:37:40.667Z","status":"online","status_checked_at":"2026-02-26T02:00:06.774Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-07-12T16:00:49.459Z","updated_at":"2026-02-26T02:36:52.770Z","avatar_url":"https://github.com/show-docs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# remark-block-directive\n\nRemark plugin for turning HTML directive into MDX tags.\n\n[![npm][npm-badge]][npm-url]\n[![github][github-badge]][github-url]\n![node][node-badge]\n\n[npm-url]: https://www.npmjs.com/package/remark-block-directive\n[npm-badge]: https://img.shields.io/npm/v/remark-block-directive.svg?style=flat-square\u0026logo=npm\n[github-url]: git+https://github.com/show-docs/remark-block-directive\n[github-badge]: https://img.shields.io/npm/l/remark-block-directive.svg?style=flat-square\u0026colorB=blue\u0026logo=github\n[node-badge]: https://img.shields.io/node/v/remark-block-directive.svg?style=flat-square\u0026colorB=green\u0026logo=node.js\n\n## Example\n\n```md\nTurn:\n\n:::div{.foo}\n\nbar\n\n:::\n\nInto:\n\n\u003cdiv class=\"foo\"\u003e\nbar\n\u003c/div\u003e\n```\n\n## Tips\n\nOnly some HTML tags are supported.\n\n## Installation\n\n```bash\nnpm install remark-block-directive --save-dev\n```\n\n## Usage\n\n```mjs\nimport readFileSync from 'node:fs';\n\nimport { remark } from 'remark';\nimport { remarkBlockDirective } from 'remark-block-directive';\nimport remarkDirective from 'remark-directive';\nimport remarkMdx from 'remark-mdx';\n\nconst markdownText = readFileSync('example.md', 'utf8');\n\nremark()\n  .use(remarkMdx)\n  .use(remarkDirective)\n  .use(remarkBlockDirective)\n  .process(markdownText)\n  .then((file) =\u003e console.info(file))\n  .catch((error) =\u003e console.warn(error));\n```\n\n## Related\n\n- [markdown-code-block-meta](https://github.com/show-docs/markdown-code-block-meta)\n- [rehype-extended-table](https://github.com/show-docs/rehype-extended-table)\n- [remark-code-example](https://github.com/show-docs/remark-code-example)\n- [remark-css-execute](https://github.com/show-docs/remark-css-execute)\n- [remark-docusaurus](https://github.com/show-docs/remark-docusaurus)\n- [remark-kroki](https://github.com/show-docs/remark-kroki)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshow-docs%2Fremark-block-directive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshow-docs%2Fremark-block-directive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshow-docs%2Fremark-block-directive/lists"}