{"id":13339490,"url":"https://github.com/syntax-tree/mdast-util-gfm-table","last_synced_at":"2026-02-03T19:14:13.908Z","repository":{"id":37330945,"uuid":"296648603","full_name":"syntax-tree/mdast-util-gfm-table","owner":"syntax-tree","description":"mdast extension to parse and serialize GFM tables","archived":false,"fork":false,"pushed_at":"2023-10-19T15:23:10.000Z","size":105,"stargazers_count":15,"open_issues_count":0,"forks_count":10,"subscribers_count":7,"default_branch":"main","last_synced_at":"2026-01-29T21:27:41.804Z","etag":null,"topics":["column","gfm","mdast","mdast-util","row","table","tabular","unist"],"latest_commit_sha":null,"homepage":"https://unifiedjs.com","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/syntax-tree.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},"funding":{"github":"unifiedjs","open_collective":"unified"}},"created_at":"2020-09-18T14:44:34.000Z","updated_at":"2026-01-03T19:12:25.000Z","dependencies_parsed_at":"2024-06-18T15:22:15.536Z","dependency_job_id":"aca44beb-2b6e-4247-a572-0cb09d212cc2","html_url":"https://github.com/syntax-tree/mdast-util-gfm-table","commit_stats":{"total_commits":78,"total_committers":2,"mean_commits":39.0,"dds":0.02564102564102566,"last_synced_commit":"abf8c36f37e363194f994cc650a83ce1926c83f9"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/syntax-tree/mdast-util-gfm-table","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntax-tree%2Fmdast-util-gfm-table","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntax-tree%2Fmdast-util-gfm-table/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntax-tree%2Fmdast-util-gfm-table/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntax-tree%2Fmdast-util-gfm-table/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/syntax-tree","download_url":"https://codeload.github.com/syntax-tree/mdast-util-gfm-table/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntax-tree%2Fmdast-util-gfm-table/sbom","scorecard":{"id":863486,"data":{"date":"2025-08-11","repo":{"name":"github.com/syntax-tree/mdast-util-gfm-table","commit":"abf8c36f37e363194f994cc650a83ce1926c83f9"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.1,"checks":[{"name":"Code-Review","score":0,"reason":"Found 1/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":"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":"Maintained","score":0,"reason":"0 commit(s) and 1 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/bb.yml:1","Warn: no topLevel permission defined: .github/workflows/main.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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/bb.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/syntax-tree/mdast-util-gfm-table/bb.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/syntax-tree/mdast-util-gfm-table/main.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/syntax-tree/mdast-util-gfm-table/main.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/syntax-tree/mdast-util-gfm-table/main.yml/main?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/main.yml:15","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party 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":"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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 'main'"],"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":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/syntax-tree/.github/security.md:1","Info: Found linked content: github.com/syntax-tree/.github/security.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/syntax-tree/.github/security.md:1","Info: Found text in security policy: github.com/syntax-tree/.github/security.md:1"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 1 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-24T02:00:52.344Z","repository_id":37330945,"created_at":"2025-08-24T02:00:52.344Z","updated_at":"2025-08-24T02:00:52.344Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29054202,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T15:43:47.601Z","status":"ssl_error","status_checked_at":"2026-02-03T15:43:46.709Z","response_time":96,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["column","gfm","mdast","mdast-util","row","table","tabular","unist"],"created_at":"2024-07-29T19:20:04.071Z","updated_at":"2026-02-03T19:14:11.399Z","avatar_url":"https://github.com/syntax-tree.png","language":"JavaScript","funding_links":["https://github.com/sponsors/unifiedjs","https://opencollective.com/unified"],"categories":[],"sub_categories":[],"readme":"# mdast-util-gfm-table\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n[![Sponsors][sponsors-badge]][collective]\n[![Backers][backers-badge]][collective]\n[![Chat][chat-badge]][chat]\n\n[mdast][] extensions to parse and serialize [GFM][] tables.\n\n## Contents\n\n*   [What is this?](#what-is-this)\n*   [When to use this](#when-to-use-this)\n*   [Install](#install)\n*   [Use](#use)\n*   [API](#api)\n    *   [`gfmTableFromMarkdown`](#gfmtablefrommarkdown)\n    *   [`gfmTableToMarkdown(options?)`](#gfmtabletomarkdownoptions)\n    *   [`Options`](#options)\n*   [Examples](#examples)\n    *   [Example: `stringLength`](#example-stringlength)\n*   [HTML](#html)\n*   [Syntax](#syntax)\n*   [Syntax tree](#syntax-tree)\n    *   [Nodes](#nodes)\n    *   [Enumeration](#enumeration)\n    *   [Content model](#content-model)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Related](#related)\n*   [Contribute](#contribute)\n*   [License](#license)\n\n## What is this?\n\nThis package contains two extensions that add support for GFM table syntax in\nmarkdown to [mdast][].\nThese extensions plug into\n[`mdast-util-from-markdown`][mdast-util-from-markdown] (to support parsing\ntables in markdown into a syntax tree) and\n[`mdast-util-to-markdown`][mdast-util-to-markdown] (to support serializing\ntables in syntax trees to markdown).\n\n## When to use this\n\nYou can use these extensions when you are working with\n`mdast-util-from-markdown` and `mdast-util-to-markdown` already.\n\nWhen working with `mdast-util-from-markdown`, you must combine this package\nwith [`micromark-extension-gfm-table`][extension].\n\nWhen you don’t need a syntax tree, you can use [`micromark`][micromark]\ndirectly with `micromark-extension-gfm-table`.\n\nWhen you are working with syntax trees and want all of GFM, use\n[`mdast-util-gfm`][mdast-util-gfm] instead.\n\nAll these packages are used [`remark-gfm`][remark-gfm], which\nfocusses on making it easier to transform content by abstracting these\ninternals away.\n\nThis utility does not handle how markdown is turned to HTML.\nThat’s done by [`mdast-util-to-hast`][mdast-util-to-hast].\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 16+), install with [npm][]:\n\n```sh\nnpm install mdast-util-gfm-table\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport {gfmTableFromMarkdown, gfmTableToMarkdown} from 'https://esm.sh/mdast-util-gfm-table@2'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n\u003cscript type=\"module\"\u003e\n  import {gfmTableFromMarkdown, gfmTableToMarkdown} from 'https://esm.sh/mdast-util-gfm-table@2?bundle'\n\u003c/script\u003e\n```\n\n## Use\n\nSay our document `example.md` contains:\n\n```markdown\n| a | b | c | d |\n| - | :- | -: | :-: |\n| e | f |\n| g | h | i | j | k |\n```\n\n…and our module `example.js` looks as follows:\n\n```js\nimport fs from 'node:fs/promises'\nimport {gfmTable} from 'micromark-extension-gfm-table'\nimport {fromMarkdown} from 'mdast-util-from-markdown'\nimport {gfmTableFromMarkdown, gfmTableToMarkdown} from 'mdast-util-gfm-table'\nimport {toMarkdown} from 'mdast-util-to-markdown'\n\nconst doc = await fs.readFile('example.md')\n\nconst tree = fromMarkdown(doc, {\n  extensions: [gfmTable()],\n  mdastExtensions: [gfmTableFromMarkdown()]\n})\n\nconsole.log(tree)\n\nconst out = toMarkdown(tree, {extensions: [gfmTableToMarkdown()]})\n\nconsole.log(out)\n```\n\n…now running `node example.js` yields (positional info removed for brevity):\n\n```js\n{\n  type: 'root',\n  children: [\n    {\n      type: 'table',\n      align: [null, 'left', 'right', 'center'],\n      children: [\n        {\n          type: 'tableRow',\n          children: [\n            {type: 'tableCell', children: [{type: 'text', value: 'a'}]},\n            {type: 'tableCell', children: [{type: 'text', value: 'b'}]},\n            {type: 'tableCell', children: [{type: 'text', value: 'c'}]},\n            {type: 'tableCell', children: [{type: 'text', value: 'd'}]}\n          ]\n        },\n        {\n          type: 'tableRow',\n          children: [\n            {type: 'tableCell', children: [{type: 'text', value: 'e'}]},\n            {type: 'tableCell', children: [{type: 'text', value: 'f'}]}\n          ]\n        },\n        {\n          type: 'tableRow',\n          children: [\n            {type: 'tableCell', children: [{type: 'text', value: 'g'}]},\n            {type: 'tableCell', children: [{type: 'text', value: 'h'}]},\n            {type: 'tableCell', children: [{type: 'text', value: 'i'}]},\n            {type: 'tableCell', children: [{type: 'text', value: 'j'}]},\n            {type: 'tableCell', children: [{type: 'text', value: 'k'}]}\n          ]\n        }\n      ]\n    }\n  ]\n}\n```\n\n```markdown\n| a | b  |  c |  d  |   |\n| - | :- | -: | :-: | - |\n| e | f  |    |     |   |\n| g | h  |  i |  j  | k |\n```\n\n## API\n\nThis package exports the identifiers\n[`gfmTableFromMarkdown`][api-gfm-table-from-markdown] and\n[`gfmTableToMarkdown`][api-gfm-table-to-markdown].\nThere is no default export.\n\n### `gfmTableFromMarkdown`\n\nCreate an extension for [`mdast-util-from-markdown`][mdast-util-from-markdown]\nto enable GFM tables in markdown.\n\n###### Returns\n\nExtension for `mdast-util-from-markdown` to enable GFM tables\n([`FromMarkdownExtension`][from-markdown-extension]).\n\n### `gfmTableToMarkdown(options?)`\n\nCreate an extension for [`mdast-util-to-markdown`][mdast-util-to-markdown] to\nenable GFM tables in markdown.\n\n###### Parameters\n\n*   `options` ([`Options`][api-options], optional)\n    — configuration\n\n###### Returns\n\nExtension for `mdast-util-to-markdown` to enable GFM tables\n([`ToMarkdownExtension`][to-markdown-extension]).\n\n### `Options`\n\nConfiguration (TypeScript type).\n\n###### Fields\n\n*   `tableCellPadding` (`boolean`, default: `true`)\n    — whether to add a space of padding between delimiters and cells\n*   `tablePipeAlign` (`boolean`, default: `true`)\n    — whether to align the delimiters\n*   `stringLength` (`((value: string) =\u003e number)`, default: `s =\u003e s.length`)\n    — function to detect the length of table cell content, used when aligning\n    the delimiters between cells\n\n## Examples\n\n### Example: `stringLength`\n\nIt’s possible to align tables based on the visual width of cells.\nFirst, let’s show the problem:\n\n```js\nimport {gfmTable} from 'micromark-extension-gfm-table'\nimport {fromMarkdown} from 'mdast-util-from-markdown'\nimport {gfmTableFromMarkdown, gfmTableToMarkdown} from 'mdast-util-gfm-table'\nimport {toMarkdown} from 'mdast-util-to-markdown'\n\nconst doc = `| Alpha | Bravo |\n| - | - |\n| 中文 | Charlie |\n| 👩‍❤️‍👩 | Delta |`\n\nconst tree = fromMarkdown(doc, {\n  extensions: [gfmTable],\n  mdastExtensions: [gfmTableFromMarkdown]\n})\n\nconsole.log(toMarkdown(tree, {extensions: [gfmTableToMarkdown()]}))\n```\n\nThe above code shows how these utilities can be used to format markdown.\nThe output is as follows:\n\n```markdown\n| Alpha    | Bravo   |\n| -------- | ------- |\n| 中文       | Charlie |\n| 👩‍❤️‍👩 | Delta   |\n```\n\nTo improve the alignment of these full-width characters and emoji, pass a\n`stringLength` function that calculates the visual width of cells.\nOne such algorithm is [`string-width`][string-width].\nIt can be used like so:\n\n```diff\n@@ -2,6 +2,7 @@ import {gfmTable} from 'micromark-extension-gfm-table'\n import {fromMarkdown} from 'mdast-util-from-markdown'\n import {gfmTableFromMarkdown, gfmTableToMarkdown} from 'mdast-util-gfm-table'\n import {toMarkdown} from 'mdast-util-to-markdown'\n+import stringWidth from 'string-width'\n\n const doc = `| Alpha | Bravo |\n | - | - |\n@@ -13,4 +14,8 @@ const tree = fromMarkdown(doc, {\n   mdastExtensions: [gfmTableFromMarkdown()]\n })\n\n-console.log(toMarkdown(tree, {extensions: [gfmTableToMarkdown()]}))\n+console.log(\n+  toMarkdown(tree, {\n+    extensions: [gfmTableToMarkdown({stringLength: stringWidth})]\n+  })\n+)\n```\n\nThe output of our code with these changes is as follows:\n\n```markdown\n| Alpha | Bravo   |\n| ----- | ------- |\n| 中文  | Charlie |\n| 👩‍❤️‍👩    | Delta   |\n```\n\n## HTML\n\nThis utility does not handle how markdown is turned to HTML.\nThat’s done by [`mdast-util-to-hast`][mdast-util-to-hast].\n\n## Syntax\n\nSee [Syntax in `micromark-extension-gfm-table`][syntax].\n\n## Syntax tree\n\nThe following interfaces are added to **[mdast][]** by this utility.\n\n### Nodes\n\n#### `Table`\n\n```idl\ninterface Table \u003c: Parent {\n  type: 'table'\n  align: [alignType]?\n  children: [TableContent]\n}\n```\n\n**Table** (**[Parent][dfn-parent]**) represents two-dimensional data.\n\n**Table** can be used where **[flow][dfn-flow-content]** content is expected.\nIts content model is **[table][dfn-table-content]** content.\n\nThe *[head][term-head]* of the node represents the labels of the columns.\n\nAn `align` field can be present.\nIf present, it must be a list of **[alignTypes][dfn-enum-align-type]**.\nIt represents how cells in columns are aligned.\n\nFor example, the following markdown:\n\n```markdown\n| foo | bar |\n| :-- | :-: |\n| baz | qux |\n```\n\nYields:\n\n```js\n{\n  type: 'table',\n  align: ['left', 'center'],\n  children: [\n    {\n      type: 'tableRow',\n      children: [\n        {\n          type: 'tableCell',\n          children: [{type: 'text', value: 'foo'}]\n        },\n        {\n          type: 'tableCell',\n          children: [{type: 'text', value: 'bar'}]\n        }\n      ]\n    },\n    {\n      type: 'tableRow',\n      children: [\n        {\n          type: 'tableCell',\n          children: [{type: 'text', value: 'baz'}]\n        },\n        {\n          type: 'tableCell',\n          children: [{type: 'text', value: 'qux'}]\n        }\n      ]\n    }\n  ]\n}\n```\n\n#### `TableRow`\n\n```idl\ninterface TableRow \u003c: Parent {\n  type: \"tableRow\"\n  children: [RowContent]\n}\n```\n\n**TableRow** (**[Parent][dfn-parent]**) represents a row of cells in a table.\n\n**TableRow** can be used where **[table][dfn-table-content]** content is\nexpected.\nIts content model is **[row][dfn-row-content]** content.\n\nIf the node is a *[head][term-head]*, it represents the labels of the columns\nfor its parent **[Table][dfn-table]**.\n\nFor an example, see **[Table][dfn-table]**.\n\n#### `TableCell`\n\n```idl\ninterface TableCell \u003c: Parent {\n  type: \"tableCell\"\n  children: [PhrasingContent]\n}\n```\n\n**TableCell** (**[Parent][dfn-parent]**) represents a header cell in a\n**[Table][dfn-table]**, if its parent is a *[head][term-head]*, or a data\ncell otherwise.\n\n**TableCell** can be used where **[row][dfn-row-content]** content is expected.\nIts content model is **[phrasing][dfn-phrasing-content]** content excluding\n**[Break][dfn-break]** nodes.\n\nFor an example, see **[Table][dfn-table]**.\n\n### Enumeration\n\n#### `alignType`\n\n```idl\nenum alignType {\n  'center' | 'left' | 'right' | null\n}\n```\n\n**alignType** represents how phrasing content is aligned\n([\\[CSSTEXT\\]][css-text]).\n\n*   **`'left'`**: See the [`left`][css-left] value of the `text-align` CSS\n    property\n*   **`'right'`**: See the [`right`][css-right] value of the `text-align`\n    CSS property\n*   **`'center'`**: See the [`center`][css-center] value of the `text-align`\n    CSS property\n*   **`null`**: phrasing content is aligned as defined by the host environment\n\n### Content model\n\n#### `FlowContent` (GFM table)\n\n```idl\ntype FlowContentGfm = Table | FlowContent\n```\n\n#### `TableContent`\n\n```idl\ntype TableContent = TableRow\n```\n\n**Table** content represent the rows in a table.\n\n#### `RowContent`\n\n```idl\ntype RowContent = TableCell\n```\n\n**Row** content represent the cells in a row.\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports the additional type [`Options`][api-options].\n\nThe `Table`, `TableRow`, and `TableCell` types of the mdast nodes are exposed\nfrom `@types/mdast`.\n\n## Compatibility\n\nProjects maintained by the unified collective are compatible with maintained\nversions of Node.js.\n\nWhen we cut a new major release, we drop support for unmaintained versions of\nNode.\nThis means we try to keep the current release line, `mdast-util-gfm-table@^2`,\ncompatible with Node.js 16.\n\nThis utility works with `mdast-util-from-markdown` version 2+ and\n`mdast-util-to-markdown` version 2+.\n\n## Related\n\n*   [`remarkjs/remark-gfm`][remark-gfm]\n    — remark plugin to support GFM\n*   [`syntax-tree/mdast-util-gfm`][mdast-util-gfm]\n    — same but all of GFM (autolink literals, footnotes, strikethrough, tables,\n    tasklists)\n*   [`micromark/micromark-extension-gfm-table`][extension]\n    — micromark extension to parse GFM tables\n\n## Contribute\n\nSee [`contributing.md`][contributing] in [`syntax-tree/.github`][health] for\nways to get started.\nSee [`support.md`][support] for ways to get help.\n\nThis project has a [code of conduct][coc].\nBy interacting with this repository, organization, or community you agree to\nabide by its terms.\n\n## License\n\n[MIT][license] © [Titus Wormer][author]\n\n\u003c!-- Definitions --\u003e\n\n[build-badge]: https://github.com/syntax-tree/mdast-util-gfm-table/workflows/main/badge.svg\n\n[build]: https://github.com/syntax-tree/mdast-util-gfm-table/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/syntax-tree/mdast-util-gfm-table.svg\n\n[coverage]: https://codecov.io/github/syntax-tree/mdast-util-gfm-table\n\n[downloads-badge]: https://img.shields.io/npm/dm/mdast-util-gfm-table.svg\n\n[downloads]: https://www.npmjs.com/package/mdast-util-gfm-table\n\n[size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size\u0026query=$.size.compressedSize\u0026url=https://deno.bundlejs.com/?q=mdast-util-gfm-table\n\n[size]: https://bundlejs.com/?q=mdast-util-gfm-table\n\n[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg\n\n[backers-badge]: https://opencollective.com/unified/backers/badge.svg\n\n[collective]: https://opencollective.com/unified\n\n[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg\n\n[chat]: https://github.com/syntax-tree/unist/discussions\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[esmsh]: https://esm.sh\n\n[typescript]: https://www.typescriptlang.org\n\n[license]: license\n\n[author]: https://wooorm.com\n\n[health]: https://github.com/syntax-tree/.github\n\n[contributing]: https://github.com/syntax-tree/.github/blob/main/contributing.md\n\n[support]: https://github.com/syntax-tree/.github/blob/main/support.md\n\n[coc]: https://github.com/syntax-tree/.github/blob/main/code-of-conduct.md\n\n[remark-gfm]: https://github.com/remarkjs/remark-gfm\n\n[mdast]: https://github.com/syntax-tree/mdast\n\n[mdast-util-gfm]: https://github.com/syntax-tree/mdast-util-gfm\n\n[mdast-util-from-markdown]: https://github.com/syntax-tree/mdast-util-from-markdown\n\n[mdast-util-to-markdown]: https://github.com/syntax-tree/mdast-util-to-markdown\n\n[mdast-util-to-hast]: https://github.com/syntax-tree/mdast-util-to-hast\n\n[micromark]: https://github.com/micromark/micromark\n\n[extension]: https://github.com/micromark/micromark-extension-gfm-table\n\n[syntax]: https://github.com/micromark/micromark-extension-gfm-table#syntax\n\n[gfm]: https://github.github.com/gfm/\n\n[string-width]: https://github.com/sindresorhus/string-width\n\n[css-text]: https://drafts.csswg.org/css-text/\n\n[css-left]: https://drafts.csswg.org/css-text/#valdef-text-align-left\n\n[css-right]: https://drafts.csswg.org/css-text/#valdef-text-align-right\n\n[css-center]: https://drafts.csswg.org/css-text/#valdef-text-align-center\n\n[term-head]: https://github.com/syntax-tree/unist#head\n\n[dfn-parent]: https://github.com/syntax-tree/mdast#parent\n\n[dfn-phrasing-content]: https://github.com/syntax-tree/mdast#phrasingcontent\n\n[dfn-break]: https://github.com/syntax-tree/mdast#break\n\n[from-markdown-extension]: https://github.com/syntax-tree/mdast-util-from-markdown#extension\n\n[to-markdown-extension]: https://github.com/syntax-tree/mdast-util-to-markdown#options\n\n[api-gfm-table-from-markdown]: #gfmtablefrommarkdown\n\n[api-gfm-table-to-markdown]: #gfmtabletomarkdownoptions\n\n[api-options]: #options\n\n[dfn-flow-content]: #flowcontent-gfm-table\n\n[dfn-table-content]: #tablecontent\n\n[dfn-enum-align-type]: #aligntype\n\n[dfn-row-content]: #rowcontent\n\n[dfn-table]: #table\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyntax-tree%2Fmdast-util-gfm-table","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyntax-tree%2Fmdast-util-gfm-table","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyntax-tree%2Fmdast-util-gfm-table/lists"}