{"id":23789934,"url":"https://github.com/blackglory/rmdast","last_synced_at":"2026-02-04T11:44:10.460Z","repository":{"id":44838266,"uuid":"396204794","full_name":"BlackGlory/rmdast","owner":"BlackGlory","description":"🌳 Renderable Markdown Abstract Syntax Tree.","archived":false,"fork":false,"pushed_at":"2024-11-28T04:19:39.000Z","size":2090,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-07T09:23:12.193Z","etag":null,"topics":["browser","esm","library","nodejs","npm-package","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/rmdast","language":"TypeScript","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/BlackGlory.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2021-08-15T03:39:23.000Z","updated_at":"2024-11-28T04:19:43.000Z","dependencies_parsed_at":"2024-11-28T07:15:57.544Z","dependency_job_id":null,"html_url":"https://github.com/BlackGlory/rmdast","commit_stats":{"total_commits":258,"total_committers":2,"mean_commits":129.0,"dds":"0.046511627906976716","last_synced_commit":"a61ea13aea1468cbcff447e3f126fd4715fd8ab3"},"previous_names":[],"tags_count":47,"template":false,"template_full_name":null,"purl":"pkg:github/BlackGlory/rmdast","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackGlory%2Frmdast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackGlory%2Frmdast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackGlory%2Frmdast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackGlory%2Frmdast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BlackGlory","download_url":"https://codeload.github.com/BlackGlory/rmdast/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackGlory%2Frmdast/sbom","scorecard":{"id":22529,"data":{"date":"2025-08-11","repo":{"name":"github.com/BlackGlory/rmdast","commit":"c0cae99848bfba20ed1455c0130edac7d9ecaded"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/nodejs.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/BlackGlory/rmdast/nodejs.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/BlackGlory/rmdast/nodejs.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/nodejs.yml:21","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"10 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-14T17:08:09.412Z","repository_id":44838266,"created_at":"2025-08-14T17:08:09.412Z","updated_at":"2025-08-14T17:08:09.412Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274222489,"owners_count":25244063,"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","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"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":["browser","esm","library","nodejs","npm-package","typescript"],"created_at":"2025-01-01T17:17:43.258Z","updated_at":"2026-02-04T11:44:10.413Z","avatar_url":"https://github.com/BlackGlory.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rmdast\n**R**enderable **M**ark**d**own **A**bstract **S**yntax **T**ree.\n\nrmdast is an easy-to-render version of [mdast v4],\nthe new AST is designed to render nodes directly from AST to any platform, e.g. React.\n\n[mdast v4]: https://github.com/syntax-tree/mdast/tree/4.0.0\n\n## Install\n```sh\nnpm install --save rmdast\n# or\nyarn add rmdast\n```\n\n## Usage\n```ts\nimport { parse } from 'rmdast'\nimport { dedent } from 'extra-tags'\n\nconst markdown = dedent`\n  # Gallery\n\n  - ![](a)\n  - ![](b)\n  - ![](c)\n`\n\nconst rmdast = parse(markdown)\n// {\n//   \"type\": \"root\",\n//   \"children\": [\n//     {\n//       \"type\": \"heading\",\n//       \"depth\": 1,\n//       \"children\": [\n//         {\n//           \"type\": \"text\",\n//           \"value\": \"Gallery\"\n//         }\n//       ]\n//     },\n//     {\n//       \"type\": \"gallery\",\n//       \"children\": [\n//         {\n//           \"type\": \"image\",\n//           \"url\": \"a\",\n//           \"title\": null,\n//           \"alt\": \"\"\n//         },\n//         {\n//           \"type\": \"image\",\n//           \"url\": \"b\",\n//           \"title\": null,\n//           \"alt\": \"\"\n//         },\n//         {\n//           \"type\": \"image\",\n//           \"url\": \"c\",\n//           \"title\": null,\n//           \"alt\": \"\"\n//         }\n//       ]\n//     }\n//   ]\n// }\n```\n\n## API\n### AST\n```ts\ninterface Node {\n  type: string\n}\n\ninterface Parent {\n  children: Node[]\n}\n\ninterface ParentOf\u003cT extends Node[]\u003e extends Parent {\n  children: T\n}\n\ntype BlockNode =\n| Root\n| Paragraph\n| Heading\n| ThematicBreak\n| Blockquote\n| List\n| ListItem\n| Code\n| Image\n| Table\n| TableRow\n| TableCell\n| LeafDirective\n| ContainerDirective\n| Gallery\n\ntype InlineNode =\n| Text\n| Emphasis\n| Strong\n| InlineCode\n| Break\n| Newline\n| Link\n| InlineImage\n| Delete\n| Footnote\n| InlineFootnote\n| TextDirective\n\ntype RootContent =\n| UniversalBlockContent\n| Gallery\n\ntype UniversalBlockContent =\n| Paragraph\n| Heading\n| ThematicBreak\n| Blockquote\n| List\n| Code\n| Image\n| Table\n| LeafDirective\n| ContainerDirective\n\ntype UniversalInlineContent =\n| Text\n| Emphasis\n| Strong\n| InlineCode\n| Break\n| Newline\n| Link\n| InlineImage\n| Delete\n| Footnote\n| InlineFootnote\n| TextDirective\n\ninterface Root extends Node, ParentOf\u003cRootContent[]\u003e {\n  type: 'root'\n}\n\ninterface Paragraph extends Node, ParentOf\u003cUniversalInlineContent[]\u003e {\n  type: 'paragraph'\n}\n\ninterface Heading extends Node, ParentOf\u003cUniversalInlineContent[]\u003e {\n  type: 'heading'\n  depth: 1 | 2 | 3 | 4 | 5 | 6\n}\n\ninterface ThematicBreak extends Node {\n  type: 'thematicBreak'\n}\n\ninterface Blockquote extends Node, ParentOf\u003cUniversalBlockContent[]\u003e {\n  type: 'blockquote'\n}\n\ninterface List extends Node, ParentOf\u003cListItem[]\u003e {\n  type: 'list'\n  ordered: boolean | null\n  start: number | null\n  spread: boolean | null\n}\n\ninterface ListItem extends Node, ParentOf\u003cUniversalBlockContent[]\u003e {\n  type: 'listItem'\n  spread: boolean | null\n  checked: boolean | null\n}\n\ninterface Code extends Node {\n  type: 'code'\n  value: string\n  lang: string | null\n  meta: string | null\n}\n\ninterface Text extends Node {\n  type: 'text'\n  value: string\n}\n\ninterface Emphasis extends Node, ParentOf\u003cUniversalInlineContent[]\u003e {\n  type: 'emphasis'\n}\n\ninterface Strong extends Node, ParentOf\u003cUniversalInlineContent[]\u003e {\n  type: 'strong'\n}\n\ninterface InlineCode extends Node {\n  type: 'inlineCode'\n  value: string\n}\n\ninterface Break extends Node {\n  type: 'break'\n}\n\ninterface Newline extends Node {\n  type: 'newline'\n}\n\ninterface Link extends Node, ParentOf\u003cUniversalInlineContent[]\u003e {\n  type: 'link'\n  url: string\n  title: string | null\n}\n\ninterface Image extends Node {\n  type: 'image'\n  url: string\n  title: string | null\n  alt: string | null\n}\n\ninterface InlineImage extends Node {\n  type: 'inlineImage'\n  url: string\n  title: string | null\n  alt: string | null\n}\n\ninterface Table extends Node, ParentOf\u003cTableRow[]\u003e {\n  type: 'table'\n  header: TableRow\n  children: TableRow[]\n}\n\ninterface TableRow extends Node, ParentOf\u003cTableCell[]\u003e {\n  type: 'tableRow'\n}\n\ninterface TableCell extends Node, ParentOf\u003cUniversalInlineContent[]\u003e {\n  type: 'tableCell'\n}\n\ninterface Delete extends Node, ParentOf\u003cUniversalInlineContent[]\u003e {\n  type: 'delete'\n}\n\ninterface Footnote extends Node, ParentOf\u003cUniversalBlockContent[]\u003e {\n  type: 'footnote'\n}\n\ninterface InlineFootnote extends Node, ParentOf\u003cUniversalInlineContent[]\u003e {\n  type: 'inlineFootnote'\n}\n\ninterface TextDirective extends Node, ParentOf\u003cUniversalInlineContent[]\u003e {\n  type: 'textDirective'\n  name: string\n  attributes: Record\u003cstring, string\u003e\n}\n\ninterface LeafDirective extends Node, ParentOf\u003cUniversalInlineContent[]\u003e {\n  type: 'leafDirective'\n  name: string\n  attributes: Record\u003cstring, string\u003e\n}\n\ninterface ContainerDirective extends Node, ParentOf\u003cUniversalBlockContent[]\u003e {\n  type: 'containerDirective'\n  name: string\n  attributes: Record\u003cstring, string\u003e\n}\n\ninterface Gallery extends Node, ParentOf\u003cImage[]\u003e{\n  type: 'gallery'\n}\n```\n\n#### The difference between rmdast and mdast v4\nAll reference nodes will be converted to no reference nodes:\n- `ImageReference` are converted to `Image`.\n- `LinkReference` are converted to `Link`.\n- `FootnoteReference` are converted to `Footnote`.\n\nThe `Footnote` nodes have been renamed to `InlineFootnote`.\n\nThe `Image` nodes are now divided into two types: `InlineImage` and `Image`.\n\nThe `Text` nodes are now divided into two types: `Text` and `Newline`.\n\nThe `Paragraph` nodes with only `InlineImage` as a child are now parsed as `Image`.\n\nThe top-level `ListItem` nodes with `Image` are now parsed as `Gallery`.\n\nRemoved `align` from `Table`, added `header`.\n\nThe following node types are not supported:\n- `YAML`\n\nThe following node types are removed:\n- `HTML`\n- `Definition`\n- `FootnoteDefinition`\n- `ListContent`\n- `TableContent`\n- `RowContent`\n\nThe following node properties are removed:\n- `data`\n- `position`\n\n##### Why is there a `Gallery` node type?\nIt is a common requirement to display multiple images with a single component,\nbut the syntax of Markdown determines that each image is independent,\nand it is difficult to link them at the AST level.\n\nTo solve this problem, rmdast adds this node type.\n\n###### Can't this be done through directive?\nYes, but not elegant.\n\nThe following Markdown text has additional text nodes(`\\n`):\n```markdown\n:::gallery\n![](a)\n![](b)\n![](c)\n:::\n```\n\nThe following Markdown text has additional blank lines:\n```markdown\n:::gallery\n![](a)\n\n![](b)\n\n![](c)\n:::\n```\n\n### parse\n```ts\nfunction parse(text: string): AST.Root\n```\n\n### utils\n#### builder\n```ts\nimport * as Builder from 'rmdast/utils/builder'\n```\n\nEach rmdast node has a corresponding builder.\n\n#### is\n```ts\nimport * as Is from 'rmdast/utils/is'\n```\n\nEach rmdast node has a corresponding `is` function.\n\n#### flatMap\n```ts\nimport { flatMap } from 'rmdast/utils/flat-map'\n\nfunction flatMap(\n  node: AST.Node\n, fn: (node: AST.Node) =\u003e AST.Node[]\n): AST.Node[]\n```\n\n#### map\n```ts\nimport { map } from 'rmdast/utils/map'\n\nfunction map(\n  node: AST.Node\n, fn: (node: AST.Node) =\u003e AST.Node\n): AST.Node\n```\n\n#### filter\n```ts\nimport { filter } from 'rmdast/utils/filter'\n\nfunction filter(\n  node: AST.Node\n, predicate: (node: AST.Node) =\u003e unknown\n): AST.Node | undefined\n```\n\n#### find\n```ts\nimport { find } from 'rmdast/utils/find'\n\nfunction find\u003cT extends AST.Node\u003e(\n  node: AST.Node\n, predicate: (node: AST.Node) =\u003e boolean\n): T | undefined\n```\n\n#### findAll\n```ts\nimport { findAll } from 'rmdast/utils/find-all'\n\nfunction* findAll\u003cT extends AST.Node\u003e(\n  node: AST.Node\n, predicate: (node: AST.Node) =\u003e boolean\n): Iterable\u003cT\u003e\n```\n\n#### traverseDescendantNodes\n```ts\nfunction traverseDescendantNodes(node: AST.Node): Iterable\u003cAST.Node\u003e\n```\n\n#### addHelpers\n```ts\nimport { addHelpers, addHelpersInPlace, NodeWithHelpers } from 'rmdast/utils/add-helpers'\n\ntype NullOrNodeWithHelpers\u003cT extends AST.Node | null\u003e =\n  T extends null\n  ? null\n  : NodeWithHelpers\u003cNonNullable\u003cT\u003e\u003e\n\ntype NodeWithHelpers\u003c\n  Node extends AST.Node\n, Sibling extends AST.Node | null = AST.Node | null\n, Parent extends AST.Node | null = AST.Node | null\n\u003e =\n  Node extends AST.Root\n  ? Mixin\u003cNode, {\n      id: string\n      parent: null\n      index: null\n      previousSibling: null\n      nextSibling: null\n      children: Array\u003cNodeWithHelpers\u003cAST.RootContent, AST.RootContent, AST.Root\u003e\u003e\n    }\u003e\n: Node extends AST.Paragraph\n  ? Mixin\u003cNode, {\n      id: string\n      parent: NullOrNodeWithHelpers\u003cParent\u003e\n      index: number\n      previousSibling: NullOrNodeWithHelpers\u003cSibling\u003e\n      nextSibling: NullOrNodeWithHelpers\u003cSibling\u003e\n      children: Array\u003c\n        NodeWithHelpers\u003c\n          AST.UniversalInlineContent\n        , AST.UniversalInlineContent\n        , AST.Paragraph\n        \u003e\n      \u003e\n    }\u003e\n: Node extends AST.Heading\n  ? Mixin\u003cNode, {\n      id: string\n      parent: NullOrNodeWithHelpers\u003cParent\u003e\n      index: number\n      previousSibling: NullOrNodeWithHelpers\u003cSibling\u003e\n      nextSibling: NullOrNodeWithHelpers\u003cSibling\u003e\n      children: Array\u003c\n        NodeWithHelpers\u003c\n          AST.UniversalInlineContent\n        , AST.UniversalInlineContent\n        , AST.Heading\n        \u003e\n      \u003e\n    }\u003e\n: Node extends AST.Blockquote\n  ? Mixin\u003cNode, {\n      id: string\n      parent: NullOrNodeWithHelpers\u003cParent\u003e\n      index: number\n      previousSibling: NullOrNodeWithHelpers\u003cSibling\u003e\n      nextSibling: NullOrNodeWithHelpers\u003cSibling\u003e\n      children: Array\u003c\n        NodeWithHelpers\u003c\n          AST.UniversalBlockContent\n        , AST.UniversalBlockContent\n        , AST.Blockquote\n        \u003e\n      \u003e\n    }\u003e\n: Node extends AST.List\n  ? Mixin\u003cNode, {\n      id: string\n      parent: NullOrNodeWithHelpers\u003cParent\u003e\n      index: number\n      previousSibling: NullOrNodeWithHelpers\u003cSibling\u003e\n      nextSibling: NullOrNodeWithHelpers\u003cSibling\u003e\n      children: Array\u003cNodeWithHelpers\u003cAST.ListItem, AST.ListItem, AST.List\u003e\u003e\n    }\u003e\n: Node extends AST.ListItem\n  ? Mixin\u003cNode, {\n      id: string\n      parent: NullOrNodeWithHelpers\u003cParent\u003e\n      index: number\n      previousSibling: NullOrNodeWithHelpers\u003cSibling\u003e\n      nextSibling: NullOrNodeWithHelpers\u003cSibling\u003e\n      children: Array\u003cNodeWithHelpers\u003cAST.UniversalBlockContent, AST.UniversalBlockContent, AST.ListItem\u003e\u003e\n    }\u003e\n: Node extends AST.Emphasis\n  ? Mixin\u003cNode, {\n      id: string\n      parent: NullOrNodeWithHelpers\u003cParent\u003e\n      index: number\n      previousSibling: NullOrNodeWithHelpers\u003cSibling\u003e\n      nextSibling: NullOrNodeWithHelpers\u003cSibling\u003e\n      children: Array\u003cNodeWithHelpers\u003cAST.UniversalInlineContent, AST.UniversalInlineContent, AST.Emphasis\u003e\u003e\n    }\u003e\n: Node extends AST.Strong\n  ? Mixin\u003cNode, {\n      id: string\n      parent: NullOrNodeWithHelpers\u003cParent\u003e\n      index: number\n      previousSibling: NullOrNodeWithHelpers\u003cSibling\u003e\n      nextSibling: NullOrNodeWithHelpers\u003cSibling\u003e\n      children: Array\u003cNodeWithHelpers\u003cAST.UniversalInlineContent, AST.UniversalInlineContent, AST.Strong\u003e\u003e\n    }\u003e\n: Node extends AST.Link\n  ? Mixin\u003cNode, {\n      id: string\n      parent: NullOrNodeWithHelpers\u003cParent\u003e\n      index: number\n      previousSibling: NullOrNodeWithHelpers\u003cSibling\u003e\n      nextSibling: NullOrNodeWithHelpers\u003cSibling\u003e\n      children: Array\u003cNodeWithHelpers\u003cAST.UniversalInlineContent, AST.UniversalInlineContent, AST.Link\u003e\u003e\n    }\u003e\n: Node extends AST.Table\n  ? Mixin\u003cNode, {\n      id: string\n      parent: NullOrNodeWithHelpers\u003cParent\u003e\n      index: number\n      previousSibling: NullOrNodeWithHelpers\u003cSibling\u003e\n      nextSibling: NullOrNodeWithHelpers\u003cSibling\u003e\n      header: NodeWithHelpers\u003cAST.TableRow, null, AST.Table\u003e\n      children: Array\u003cNodeWithHelpers\u003cAST.TableRow, AST.TableRow, AST.Table\u003e\u003e\n    }\u003e\n: Node extends AST.TableRow\n  ? Mixin\u003cNode, {\n      id: string\n      parent: NullOrNodeWithHelpers\u003cParent\u003e\n      index: Sibling extends null ? null : number\n      previousSibling: NullOrNodeWithHelpers\u003cSibling\u003e\n      nextSibling: NullOrNodeWithHelpers\u003cSibling\u003e\n      children: Array\u003cNodeWithHelpers\u003cAST.TableCell, AST.TableCell, AST.TableRow\u003e\u003e\n    }\u003e\n: Node extends AST.TableCell\n  ? Mixin\u003cNode, {\n      id: string\n      parent: NullOrNodeWithHelpers\u003cParent\u003e\n      index: number\n      previousSibling: NullOrNodeWithHelpers\u003cSibling\u003e\n      nextSibling: NullOrNodeWithHelpers\u003cSibling\u003e\n      children: Array\u003cNodeWithHelpers\u003cAST.UniversalInlineContent, AST.UniversalInlineContent, AST.TableCell\u003e\u003e\n    }\u003e\n: Node extends AST.Delete\n  ? Mixin\u003cNode, {\n      id: string\n      parent: NullOrNodeWithHelpers\u003cParent\u003e\n      index: number\n      previousSibling: NullOrNodeWithHelpers\u003cSibling\u003e\n      nextSibling: NullOrNodeWithHelpers\u003cSibling\u003e\n      children: Array\u003cNodeWithHelpers\u003cAST.UniversalInlineContent, AST.UniversalInlineContent, AST.Delete\u003e\u003e\n    }\u003e\n: Node extends AST.Footnote\n  ? Mixin\u003cNode, {\n      id: string\n      parent: NullOrNodeWithHelpers\u003cParent\u003e\n      index: number\n      previousSibling: NullOrNodeWithHelpers\u003cSibling\u003e\n      nextSibling: NullOrNodeWithHelpers\u003cSibling\u003e\n      children: Array\u003c\n        NodeWithHelpers\u003c\n          AST.UniversalBlockContent\n        , AST.UniversalBlockContent\n        , AST.Footnote\n        \u003e\n      \u003e\n    }\u003e\n: Node extends AST.InlineFootnote\n  ? Mixin\u003cNode, {\n      id: string\n      parent: NullOrNodeWithHelpers\u003cParent\u003e\n      index: number\n      previousSibling: NullOrNodeWithHelpers\u003cSibling\u003e\n      nextSibling: NullOrNodeWithHelpers\u003cSibling\u003e\n      children: Array\u003c\n        NodeWithHelpers\u003c\n          AST.UniversalInlineContent\n        , AST.UniversalInlineContent\n        , AST.InlineFootnote\n        \u003e\n      \u003e\n    }\u003e\n: Node extends AST.TextDirective\n  ? Mixin\u003cNode, {\n      id: string\n      parent: NullOrNodeWithHelpers\u003cParent\u003e\n      index: number\n      previousSibling: NullOrNodeWithHelpers\u003cSibling\u003e\n      nextSibling: NullOrNodeWithHelpers\u003cSibling\u003e\n      children: Array\u003c\n        NodeWithHelpers\u003c\n          AST.UniversalInlineContent\n        , AST.UniversalInlineContent\n        , AST.TextDirective\n        \u003e\n      \u003e\n    }\u003e\n: Node extends AST.LeafDirective\n  ? Mixin\u003cNode, {\n      id: string\n      parent: NullOrNodeWithHelpers\u003cParent\u003e\n      index: number\n      previousSibling: NullOrNodeWithHelpers\u003cSibling\u003e\n      nextSibling: NullOrNodeWithHelpers\u003cSibling\u003e\n      children: Array\u003c\n        NodeWithHelpers\u003c\n          AST.UniversalInlineContent\n        , AST.UniversalInlineContent\n        , AST.LeafDirective\n        \u003e\n      \u003e\n    }\u003e\n: Node extends AST.ContainerDirective\n  ? Mixin\u003cNode, {\n      id: string\n      parent: NullOrNodeWithHelpers\u003cParent\u003e\n      index: number\n      previousSibling: NullOrNodeWithHelpers\u003cSibling\u003e\n      nextSibling: NullOrNodeWithHelpers\u003cSibling\u003e\n      children: Array\u003c\n        NodeWithHelpers\u003c\n          AST.UniversalBlockContent\n        , AST.UniversalBlockContent\n        , AST.ContainerDirective\n        \u003e\n      \u003e\n    }\u003e\n: Node extends AST.Gallery\n  ? Mixin\u003cNode, {\n      id: string\n      parent: NullOrNodeWithHelpers\u003cAST.Root\u003e\n      index: number\n      previousSibling: null\n      nextSibling: null\n      children: Array\u003cNodeWithHelpers\u003cAST.Image, AST.Image, AST.Gallery\u003e\u003e\n    }\u003e\n: Mixin\u003cNode, {\n    id: string\n    parent: NullOrNodeWithHelpers\u003cParent\u003e\n    index: number | null\n    previousSibling: NullOrNodeWithHelpers\u003cSibling\u003e\n    nextSibling: NullOrNodeWithHelpers\u003cSibling\u003e\n  }\u003e\n\nfunction addHelpers\u003cT extends AST.Node\u003e(node: T): NodeWithHelpers\u003cT\u003e\nfunction addHelpersInPlace\u003cT extends AST.Node\u003e(node: T): NodeWithHelpers\u003cT\u003e\n```\n\n#### removeHelpers\n```ts\nimport { removeHelpers, removeHelpersInPlace } from 'rmdast/utils/remove-helpers'\n\nfunction removeHelpers\u003cT extends AST.Node\u003e(node: NodeWithHelpers\u003cT\u003e): T\n\nfunction removeHelpersInPlace\u003cT extends AST.Node\u003e(node: NodeWithHelpers\u003cT\u003e): T\n```\n\n#### withHelpers\n```ts\nimport { withHelpers, withHelpersInPlace } from 'rmdast/utils/with-helpers'\n\nfunction withHelpers\u003cT extends AST.Node, U\u003e(\n  node: T\n, fn: (node: NodeWithHelpers\u003cT\u003e) =\u003e U\n): U\n\nfunction withHelpersInPlace\u003cT extends AST.Node, U\u003e(\n  node: T\n, fn: (node: NodeWithHelpers\u003cT\u003e) =\u003e U\n): U\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackglory%2Frmdast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblackglory%2Frmdast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackglory%2Frmdast/lists"}