{"name":"mdast-util-mdx-jsx","version":"3.1.0","description":"mdast extension to parse and serialize MDX or MDX.js JSX","license":"MIT","keywords":["unist","mdast","mdast-util","util","utility","markdown","markup","mdx","mdxjs","jsx","extension"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/mdast-util-mdx-jsx.git"},"bugs":{"url":"https://github.com/syntax-tree/mdast-util-mdx-jsx/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","exports":"./index.js","dependencies":{"@types/estree-jsx":"^1.0.0","@types/hast":"^3.0.0","@types/mdast":"^4.0.0","@types/unist":"^3.0.0","ccount":"^2.0.0","devlop":"^1.1.0","mdast-util-from-markdown":"^2.0.0","mdast-util-to-markdown":"^2.0.0","parse-entities":"^4.0.0","stringify-entities":"^4.0.0","unist-util-remove-position":"^5.0.0","unist-util-stringify-position":"^4.0.0","vfile-message":"^4.0.0"},"devDependencies":{"@types/node":"^20.0.0","acorn":"^8.0.0","c8":"^9.0.0","micromark-extension-mdx-jsx":"^3.0.0","micromark-extension-mdx-md":"^2.0.0","prettier":"^3.0.0","remark-cli":"^11.0.0","remark-preset-wooorm":"^9.0.0","type-coverage":"^2.0.0","typescript":"^5.0.0","xo":"^0.57.0"},"scripts":{"prepack":"npm run build && npm run format","build":"tsc --build --clean && tsc --build && type-coverage","format":"remark . -qfo && prettier . -w --log-level warn && xo --fix","test-api-prod":"node --conditions production test.js","test-api-dev":"node --conditions development test.js","test-api":"npm run test-api-dev && npm run test-api-prod","test-coverage":"c8 --100 --reporter lcov npm run test-api","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"bracketSpacing":false,"semi":false,"singleQuote":true,"tabWidth":2,"trailingComma":"none","useTabs":false},"remarkConfig":{"plugins":["remark-preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"ignoreCatch":true,"strict":true},"xo":{"overrides":[{"files":["**/*.ts"],"rules":{"@typescript-eslint/ban-types":"off","@typescript-eslint/consistent-type-definitions":"off"}}],"prettier":true,"rules":{"logical-assignment-operators":"off","unicorn/prefer-at":"off"}},"_id":"mdast-util-mdx-jsx@3.1.0","gitHead":"bf60d93bdffde6e4d3359324170d438e5ee62a63","types":"./index.d.ts","homepage":"https://github.com/syntax-tree/mdast-util-mdx-jsx#readme","_nodeVersion":"21.2.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-A8AJHlR7/wPQ3+Jre1+1rq040fX9A4Q1jG8JxmSNp/PLPHg80A6475wxTp3KzHpApFH6yWxFotHrJQA3dXP6/w==","shasum":"5f7f204cf3f380cba1a8441142406eede1bc7660","tarball":"http://registry-npm.ywwl.com/mdast-util-mdx-jsx/download/mdast-util-mdx-jsx-3.1.0.tgz","fileCount":7,"unpackedSize":57657,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG/TQXHnD6OIehONGNlvHkTPSHm1GxMy/rlbYbQzvxQoAiEA/9Rb4Is2J1baa0NEMrKjoP4zA0clMaYB/GcqHFslnH8="}],"size":13545,"noattachment":false,"key":"/mdast-util-mdx-jsx/-/mdast-util-mdx-jsx-3.1.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"},{"name":"kmck","email":"keith@mcknig.ht"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mdast-util-mdx-jsx_3.1.0_1707556734221_0.42484283502079334"},"_hasShrinkwrap":false,"readme":"# mdast-util-mdx-jsx\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 [MDX][] JSX (`<a />`).\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    *   [`mdxJsxFromMarkdown()`](#mdxjsxfrommarkdown)\n    *   [`mdxJsxToMarkdown(options?)`](#mdxjsxtomarkdownoptions)\n    *   [`MdxJsxAttribute`](#mdxjsxattribute)\n    *   [`MdxJsxAttributeValueExpression`](#mdxjsxattributevalueexpression)\n    *   [`MdxJsxExpressionAttribute`](#mdxjsxexpressionattribute)\n    *   [`MdxJsxFlowElement`](#mdxjsxflowelement)\n    *   [`MdxJsxFlowElementHast`](#mdxjsxflowelementhast)\n    *   [`MdxJsxTextElement`](#mdxjsxtextelement)\n    *   [`MdxJsxTextElementHast`](#mdxjsxtextelementhast)\n    *   [`ToMarkdownOptions`](#tomarkdownoptions)\n*   [HTML](#html)\n*   [Syntax](#syntax)\n*   [Syntax tree](#syntax-tree)\n    *   [Nodes](#nodes)\n    *   [Mixin](#mixin)\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 MDX JSX syntax in\nmarkdown to [mdast][].\nThese extensions plug into\n[`mdast-util-from-markdown`][mdast-util-from-markdown] (to support parsing\nJSX in markdown into a syntax tree) and\n[`mdast-util-to-markdown`][mdast-util-to-markdown] (to support serializing\nJSX in syntax trees to markdown).\n\n[JSX][] is an XML-like syntax extension to ECMAScript (JavaScript), which MDX\nbrings to markdown.\nFor more info on MDX, see [What is MDX?][what-is-mdx]\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-mdx-jsx`][micromark-extension-mdx-jsx].\n\nWhen you are working with syntax trees and want all of MDX, use\n[`mdast-util-mdx`][mdast-util-mdx] instead.\n\nAll these packages are used in [`remark-mdx`][remark-mdx], which\nfocusses on making it easier to transform content by abstracting these\ninternals away.\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-mdx-jsx\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport {mdxJsxFromMarkdown, mdxJsxToMarkdown} from 'https://esm.sh/mdast-util-mdx-jsx@3'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n<script type=\"module\">\n  import {mdxJsxFromMarkdown, mdxJsxToMarkdown} from 'https://esm.sh/mdast-util-mdx-jsx@3?bundle'\n</script>\n```\n\n## Use\n\nSay our document `example.mdx` contains:\n\n```mdx\n<Box>\n  - a list\n</Box>\n\n<MyComponent {...props} />\n\n<abbr title=\"Hypertext Markup Language\">HTML</abbr> is a lovely language.\n```\n\n…and our module `example.js` looks as follows:\n\n```js\nimport fs from 'node:fs/promises'\nimport * as acorn from 'acorn'\nimport {mdxJsx} from 'micromark-extension-mdx-jsx'\nimport {fromMarkdown} from 'mdast-util-from-markdown'\nimport {mdxJsxFromMarkdown, mdxJsxToMarkdown} from 'mdast-util-mdx-jsx'\nimport {toMarkdown} from 'mdast-util-to-markdown'\n\nconst doc = await fs.readFile('example.mdx')\n\nconst tree = fromMarkdown(doc, {\n  extensions: [mdxJsx({acorn, addResult: true})],\n  mdastExtensions: [mdxJsxFromMarkdown()]\n})\n\nconsole.log(tree)\n\nconst out = toMarkdown(tree, {extensions: [mdxJsxToMarkdown()]})\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: 'mdxJsxFlowElement',\n      name: 'Box',\n      attributes: [],\n      children: [\n        {\n          type: 'list',\n          ordered: false,\n          start: null,\n          spread: false,\n          children: [\n            {\n              type: 'listItem',\n              spread: false,\n              checked: null,\n              children: [\n                {type: 'paragraph', children: [{type: 'text', value: 'a list'}]}\n              ]\n            }\n          ]\n        }\n      ]\n    },\n    {\n      type: 'mdxJsxFlowElement',\n      name: 'MyComponent',\n      attributes: [\n        {\n          type: 'mdxJsxExpressionAttribute',\n          value: '...props',\n          data: {\n            estree: {\n              type: 'Program',\n              body: [\n                {\n                  type: 'ExpressionStatement',\n                  expression: {\n                    type: 'ObjectExpression',\n                    properties: [\n                      {\n                        type: 'SpreadElement',\n                        argument: {type: 'Identifier', name: 'props'}\n                      }\n                    ]\n                  }\n                }\n              ],\n              sourceType: 'module'\n            }\n          }\n        }\n      ],\n      children: []\n    },\n    {\n      type: 'paragraph',\n      children: [\n        {\n          type: 'mdxJsxTextElement',\n          name: 'abbr',\n          attributes: [\n            {\n              type: 'mdxJsxAttribute',\n              name: 'title',\n              value: 'Hypertext Markup Language'\n            }\n          ],\n          children: [{type: 'text', value: 'HTML'}]\n        },\n        {type: 'text', value: ' is a lovely language.'}\n      ]\n    }\n  ]\n}\n```\n\n```markdown\n<Box>\n  *   a list\n</Box>\n\n<MyComponent {...props} />\n\n<abbr title=\"Hypertext Markup Language\">HTML</abbr> is a lovely language.\n```\n\n## API\n\nThis package exports the identifiers\n[`mdxJsxFromMarkdown`][api-mdx-jsx-from-markdown] and\n[`mdxJsxToMarkdown`][api-mdx-jsx-to-markdown].\nThere is no default export.\n\n### `mdxJsxFromMarkdown()`\n\nCreate an extension for\n[`mdast-util-from-markdown`][mdast-util-from-markdown]\nto enable MDX JSX.\n\n###### Returns\n\nExtension for `mdast-util-from-markdown` to enable MDX JSX\n([`FromMarkdownExtension`][from-markdown-extension]).\n\nWhen using the [micromark syntax extension][micromark-extension-mdx-jsx] with\n`addResult`, nodes will have a `data.estree` field set to an ESTree\n[`Program`][program] node.\n\n### `mdxJsxToMarkdown(options?)`\n\nCreate an extension for\n[`mdast-util-to-markdown`][mdast-util-to-markdown]\nto enable MDX JSX.\n\nThis extension configures `mdast-util-to-markdown` with\n[`options.fences: true`][mdast-util-to-markdown-fences] and\n[`options.resourceLink: true`][mdast-util-to-markdown-resourcelink] too, do not\noverwrite them!\n\n###### Parameters\n\n*   `options` ([`ToMarkdownOptions`][api-to-markdown-options])\n    — configuration\n\n###### Returns\n\nExtension for `mdast-util-to-markdown` to enable MDX JSX\n([`FromMarkdownExtension`][to-markdown-extension]).\n\n### `MdxJsxAttribute`\n\nMDX JSX attribute with a key (TypeScript type).\n\n###### Type\n\n```ts\nimport type {Literal} from 'mdast'\n\ninterface MdxJsxAttribute extends Literal {\n  type: 'mdxJsxAttribute'\n  name: string\n  value?: MdxJsxAttributeValueExpression | string | null | undefined\n}\n```\n\n### `MdxJsxAttributeValueExpression`\n\nMDX JSX attribute value set to an expression (TypeScript type).\n\n###### Type\n\n```ts\nimport type {Program} from 'estree-jsx'\nimport type {Literal} from 'mdast'\n\ninterface MdxJsxAttributeValueExpression extends Literal {\n  type: 'mdxJsxAttributeValueExpression'\n  data?: {estree?: Program | null | undefined} & Literal['data']\n}\n```\n\n### `MdxJsxExpressionAttribute`\n\nMDX JSX attribute as an expression (TypeScript type).\n\n###### Type\n\n```ts\nimport type {Program} from 'estree-jsx'\nimport type {Literal} from 'mdast'\n\ninterface MdxJsxExpressionAttribute extends Literal {\n  type: 'mdxJsxExpressionAttribute'\n  data?: {estree?: Program | null | undefined} & Literal['data']\n}\n```\n\n### `MdxJsxFlowElement`\n\nMDX JSX element node, occurring in flow (block) (TypeScript type).\n\n###### Type\n\n```ts\nimport type {BlockContent, DefinitionContent, Parent} from 'mdast'\n\nexport interface MdxJsxFlowElement extends Parent {\n  type: 'mdxJsxFlowElement'\n  name: string | null\n  attributes: Array<MdxJsxAttribute | MdxJsxExpressionAttribute>\n  children: Array<BlockContent | DefinitionContent>\n}\n```\n\n### `MdxJsxFlowElementHast`\n\nSame as [`MdxJsxFlowElement`][api-mdx-jsx-flow-element], but registered with\n`@types/hast` (TypeScript type).\n\n###### Type\n\n```ts\nimport type {ElementContent, Parent} from 'hast'\n\nexport interface MdxJsxFlowElementHast extends Parent {\n  type: 'mdxJsxFlowElement'\n  name: string | null\n  attributes: Array<MdxJsxAttribute | MdxJsxExpressionAttribute>\n  children: Array<ElementContent>\n}\n```\n\n### `MdxJsxTextElement`\n\nMDX JSX element node, occurring in text (phrasing) (TypeScript type).\n\n###### Type\n\n```ts\nimport type {Parent, PhrasingContent} from 'mdast'\n\nexport interface MdxJsxTextElement extends Parent {\n  type: 'mdxJsxTextElement'\n  name: string | null\n  attributes: Array<MdxJsxAttribute | MdxJsxExpressionAttribute>\n  children: Array<PhrasingContent>\n}\n```\n\n### `MdxJsxTextElementHast`\n\nSame as [`MdxJsxTextElement`][api-mdx-jsx-text-element], but registered with\n`@types/hast` (TypeScript type).\n\n###### Type\n\n```ts\nimport type {ElementContent, Parent} from 'hast'\n\nexport interface MdxJsxTextElementHast extends Parent {\n  type: 'mdxJsxTextElement'\n  name: string | null\n  attributes: Array<MdxJsxAttribute | MdxJsxExpressionAttribute>\n  children: Array<ElementContent>\n}\n```\n\n### `ToMarkdownOptions`\n\nConfiguration (TypeScript type).\n\n##### Fields\n\n*   `quote` (`'\"'` or `\"'\"`, default: `'\"'`)\n    — preferred quote to use around attribute values\n*   `quoteSmart` (`boolean`, default: `false`)\n    — use the other quote if that results in less bytes\n*   `tightSelfClosing` (`boolean`, default: `false`)\n    — do not use an extra space when closing self-closing elements: `<img/>`\n    instead of `<img />`\n*   `printWidth` (`number`, default: `Infinity`)\n    — try and wrap syntax at this width.\n    When set to a finite number (say, `80`), the formatter will print\n    attributes on separate lines when a tag doesn’t fit on one line.\n    The normal behavior is to print attributes with spaces between them instead\n    of line endings\n\n## HTML\n\nMDX JSX has no representation in HTML.\nThough, when you are dealing with MDX, you will likely go *through* hast.\nYou can enable passing MDX JSX through to hast by configuring\n[`mdast-util-to-hast`][mdast-util-to-hast] with\n`passThrough: ['mdxJsxFlowElement', 'mdxJsxTextElement']`.\n\n## Syntax\n\nSee [Syntax in `micromark-extension-mdx-jsx`][syntax].\n\n## Syntax tree\n\nThe following interfaces are added to **[mdast][]** by this utility.\n\n### Nodes\n\n#### `MdxJsxFlowElement`\n\n```idl\ninterface MdxJsxFlowElement <: Parent {\n  type: 'mdxJsxFlowElement'\n}\n\nMdxJsxFlowElement includes MdxJsxElement\n```\n\n**MdxJsxFlowElement** (**[Parent][dfn-parent]**) represents JSX in flow (block).\nIt can be used where **[flow][dfn-content-flow]** content is expected.\nIt includes the mixin **[MdxJsxElement][dfn-mixin-mdx-jsx-element]**.\n\nFor example, the following markdown:\n\n```markdown\n<w x=\"y\">\n  z\n</w>\n```\n\nYields:\n\n```js\n{\n  type: 'mdxJsxFlowElement',\n  name: 'w',\n  attributes: [{type: 'mdxJsxAttribute', name: 'x', value: 'y'}],\n  children: [{type: 'paragraph', children: [{type: 'text', value: 'z'}]}]\n}\n```\n\n#### `MdxJsxTextElement`\n\n```idl\ninterface MdxJsxTextElement <: Parent {\n  type: 'mdxJsxTextElement'\n}\n\nMdxJsxTextElement includes MdxJsxElement\n```\n\n**MdxJsxTextElement** (**[Parent][dfn-parent]**) represents JSX in text (span,\ninline).\nIt can be used where **[phrasing][dfn-content-phrasing]** content is\nexpected.\nIt includes the mixin **[MdxJsxElement][dfn-mixin-mdx-jsx-element]**.\n\nFor example, the following markdown:\n\n```markdown\na <b c>d</b> e.\n```\n\nYields:\n\n```js\n{\n  type: 'mdxJsxTextElement',\n  name: 'b',\n  attributes: [{type: 'mdxJsxAttribute', name: 'c', value: null}],\n  children: [{type: 'text', value: 'd'}]\n}\n```\n\n### Mixin\n\n#### `MdxJsxElement`\n\n```idl\ninterface mixin MdxJsxElement {\n  name: string?\n  attributes: [MdxJsxExpressionAttribute | MdxJsxAttribute]\n}\n\ninterface MdxJsxExpressionAttribute <: Literal {\n  type: 'mdxJsxExpressionAttribute'\n}\n\ninterface MdxJsxAttribute <: Node {\n  type: 'mdxJsxAttribute'\n  name: string\n  value: MdxJsxAttributeValueExpression | string?\n}\n\ninterface MdxJsxAttributeValueExpression <: Literal {\n  type: 'mdxJsxAttributeValueExpression'\n}\n```\n\n**MdxJsxElement** represents a JSX element.\n\nThe `name` field can be present and represents an identifier.\nWithout `name`, the element represents a fragment, in which case no attributes\nmust be present.\n\nThe `attributes` field represents information associated with the node.\nThe value of the `attributes` field is a list of **MdxJsxExpressionAttribute**\nand **MdxJsxAttribute** nodes.\n\n**MdxJsxExpressionAttribute** represents an expression (typically in a\nprogramming language) that when evaluated results in multiple attributes.\n\n**MdxJsxAttribute** represents a single attribute.\nThe `name` field must be present.\nThe `value` field can be present, in which case it is either a string (a static\nvalue) or an expression (typically in a programming language) that when\nevaluated results in an attribute value.\n\n### Content model\n\n###### `FlowContent` (MDX JSX)\n\n```idl\ntype MdxJsxFlowContent = MdxJsxFlowElement | FlowContent\n```\n\n###### `PhrasingContent` (MDX JSX)\n\n```idl\ntype MdxJsxPhrasingContent = MdxJsxTextElement | PhrasingContent\n```\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports the additional types  [`MdxJsxAttribute`][api-mdx-jsx-attribute],\n[`MdxJsxAttributeValueExpression`][api-mdx-jsx-attribute-value-expression],\n[`MdxJsxExpressionAttribute`][api-mdx-jsx-expression-attribute],\n[`MdxJsxFlowElement`][api-mdx-jsx-flow-element],\n[`MdxJsxFlowElementHast`][api-mdx-jsx-flow-element-hast],\n[`MdxJsxTextElement`][api-mdx-jsx-text-element],\n[`MdxJsxTextElementHast`][api-mdx-jsx-text-element-hast], and\n[`ToMarkdownOptions`][api-to-markdown-options].\n\nIt also registers the node types with `@types/mdast` and `@types/hast`.\nIf you’re working with the syntax tree, make sure to import this utility\nsomewhere in your types, as that registers the new node types in the tree.\n\n```js\n/**\n * @typedef {import('mdast-util-mdx-jsx')}\n */\n\nimport {visit} from 'unist-util-visit'\n\n/** @type {import('mdast').Root} */\nconst tree = getMdastNodeSomeHow()\n\nvisit(tree, function (node) {\n  // `node` can now be one of the JSX nodes.\n})\n```\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-mdx-jsx@^3`,\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*   [`micromark/micromark-extension-mdx-jsx`][micromark-extension-mdx-jsx]\n    — support MDX JSX in micromark\n*   [`syntax-tree/mdast-util-mdx`][mdast-util-mdx]\n    — support MDX in mdast\n*   [`remarkjs/remark-mdx`][remark-mdx]\n    — support MDX in remark\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[build-badge]: https://github.com/syntax-tree/mdast-util-mdx-jsx/workflows/main/badge.svg\n\n[build]: https://github.com/syntax-tree/mdast-util-mdx-jsx/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/syntax-tree/mdast-util-mdx-jsx.svg\n\n[coverage]: https://codecov.io/github/syntax-tree/mdast-util-mdx-jsx\n\n[downloads-badge]: https://img.shields.io/npm/dm/mdast-util-mdx-jsx.svg\n\n[downloads]: https://www.npmjs.com/package/mdast-util-mdx-jsx\n\n[size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=mdast-util-mdx-jsx\n\n[size]: https://bundlejs.com/?q=mdast-util-mdx-jsx\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[esmsh]: https://esm.sh\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[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[typescript]: https://www.typescriptlang.org\n\n[mdast]: https://github.com/syntax-tree/mdast\n\n[mdast-util-to-hast]: https://github.com/syntax-tree/mdast-util-to-hast\n\n[mdast-util-from-markdown]: https://github.com/syntax-tree/mdast-util-from-markdown\n\n[from-markdown-extension]: https://github.com/syntax-tree/mdast-util-from-markdown#extension\n\n[mdast-util-to-markdown]: https://github.com/syntax-tree/mdast-util-to-markdown\n\n[to-markdown-extension]: https://github.com/syntax-tree/mdast-util-to-markdown#options\n\n[mdast-util-mdx]: https://github.com/syntax-tree/mdast-util-mdx\n\n[program]: https://github.com/estree/estree/blob/master/es2015.md#programs\n\n[dfn-parent]: https://github.com/syntax-tree/mdast#parent\n\n[dfn-content-flow]: #flowcontent-mdx-jsx\n\n[dfn-content-phrasing]: #phrasingcontent-mdx-jsx\n\n[dfn-mixin-mdx-jsx-element]: #mdxjsxelement\n\n[jsx]: https://facebook.github.io/jsx/\n\n[what-is-mdx]: https://mdxjs.com/docs/what-is-mdx/\n\n[micromark-extension-mdx-jsx]: https://github.com/micromark/micromark-extension-mdx-jsx\n\n[syntax]: https://github.com/micromark/micromark-extension-mdx-jsx#syntax\n\n[mdast-util-to-markdown-fences]: https://github.com/syntax-tree/mdast-util-to-markdown#optionsfences\n\n[mdast-util-to-markdown-resourcelink]: https://github.com/syntax-tree/mdast-util-to-markdown#optionsresourcelink\n\n[remark-mdx]: https://mdxjs.com/packages/remark-mdx/\n\n[mdx]: https://mdxjs.com\n\n[api-mdx-jsx-from-markdown]: #mdxjsxfrommarkdown\n\n[api-mdx-jsx-to-markdown]: #mdxjsxtomarkdownoptions\n\n[api-mdx-jsx-attribute]: #mdxjsxattribute\n\n[api-mdx-jsx-attribute-value-expression]: #mdxjsxattributevalueexpression\n\n[api-mdx-jsx-expression-attribute]: #mdxjsxexpressionattribute\n\n[api-mdx-jsx-flow-element]: #mdxjsxflowelement\n\n[api-mdx-jsx-flow-element-hast]: #mdxjsxflowelementhast\n\n[api-mdx-jsx-text-element]: #mdxjsxtextelement\n\n[api-mdx-jsx-text-element-hast]: #mdxjsxtextelementhast\n\n[api-to-markdown-options]: #tomarkdownoptions\n","publish_time":1707556734385,"_cnpm_publish_time":1707556734385,"dist-tags":{"latest":"3.2.1"}}