{"name":"micromark-extension-mdx-jsx","version":"0.1.2","description":"micromark extension to support MDX or MDX.js JSX","license":"MIT","keywords":["micromark","micromark-extension","mdx","mdxjs","jsx","js","javascript","es","ecmascript","markdown","unified"],"repository":{"type":"git","url":"git+https://github.com/micromark/micromark-extension-mdx-jsx.git"},"bugs":{"url":"https://github.com/micromark/micromark-extension-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"}],"dependencies":{"micromark":"~2.11.0","micromark-extension-mdx-expression":"^0.1.1","vfile-message":"^2.0.0"},"devDependencies":{"@unicode/unicode-13.0.0":"^1.0.0","acorn":"^8.0.0","acorn-jsx":"^5.0.0","mdast-zone":"^4.0.0","nyc":"^15.0.0","prettier":"^2.0.0","regenerate":"^1.0.0","remark-cli":"^9.0.0","remark-preset-wooorm":"^8.0.0","tape":"^5.0.0","xo":"^0.36.0"},"scripts":{"generate":"node script/generate-identifier-regex","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run generate && npm run format && npm run test-coverage"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"rules":{"max-params":"off","unicorn/escape-case":"off","unicorn/no-fn-reference-in-iterator":"off","unicorn/no-hex-escape":"off"}},"remarkConfig":{"plugins":["preset-wooorm","./script/grammar.js"]},"gitHead":"262264647a1bafd1ec4c3197ab6c71ac8e26d57b","homepage":"https://github.com/micromark/micromark-extension-mdx-jsx#readme","_id":"micromark-extension-mdx-jsx@0.1.2","_nodeVersion":"15.1.0","_npmVersion":"6.14.9","dist":{"integrity":"sha512-gxAeXFaJ/1DzMcC7DtwZm6SxYetg/uKyNquWQNLNhWXntqPvztVZgzsKdqm0vioEw0411k283ldLK6L9z0rMfA==","shasum":"6d9938fc4ed57c60aad8f6ad298f4db4ca78914c","tarball":"http://registry-npm.ywwl.com/micromark-extension-mdx-jsx/download/micromark-extension-mdx-jsx-0.1.2.tgz","fileCount":10,"unpackedSize":48978,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfz7+MCRA9TVsSAnZWagAAUuwP/112I32b3DIvT4xXYNHt\nxrqZmniHMBYjipfVRv2E3kpBhYiJGJlBc0aJ8YzGdc9Rhza9aPKN/2kCoes0\no3wZOUTeIFZ9hc3rtmjSuwugBk/+NCuL5eGnVtxt8i5Mc87tP+/ZRY8+Sbej\ncoeu+9zga1D87eMK+2k5uEJ5OsJi1DASWFgPj/NLYUgE44mPYqnZFH4Xb9jJ\ntoL3ClDiUAUdIcKwom9yKzTX8OBKf8ZqQVWDTn2C4SIHWcSsVG0N7h3OISbp\nr+Aqf4oLQRUqcENDX8EqhHCuc439lhvlJLZoxciuEcQJd2Y8eUdbIlyQo1Vm\nR6KbVTdCL6m8DYw7N1o+Kl0fr1uPDL/V/JznR/J4EJ71Cp/nEagTnA1M+1o4\nO/Ymnr2XUS5RwKoRWEfU2oNlE+CIz+Vo+l4p6vmexZxBqsTdWwZt9XkUYN57\nerxczTPp47NvHpvzRKqXHqdEOwZlPRM0ESfOFhqSAuSQEg/+nHTfv2UFSKj+\naV5lC/FUbsNrlSVC7KPwJnE/t8SpHh3IcO2yOtXXWWT81V4tSgOIM/g8m02n\nQajdmv3OcpniUHhTaAy9Dw4kPXm3fdat2jWmDP3Rm4qRGG5KvVzMPUulU0C4\nL0SqDFEPhOyXlUdvLKJZEPIaLIbbY7K4dbaoNMlT0FZIrWPFbLqlkAz1L/hg\nJegO\r\n=BmWo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEwhwdrVuybbBTD6nnN1M7/FTsfWq7c5OZKfIlbFwRG+AiBVplUDBrf1d9KeeNxpJWGbHupiV5cqF6sQQwtjkzVxQA=="}],"size":12330,"noattachment":false,"key":"/micromark-extension-mdx-jsx/-/micromark-extension-mdx-jsx-0.1.2.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/micromark-extension-mdx-jsx_0.1.2_1607450507923_0.29156698795128544"},"_hasShrinkwrap":false,"readme":"# micromark-extension-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[micromark][] extension to support [MDX][mdxjs] JSX (`<Component />`).\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    *   [`mdxJsx(options?)`](#mdxjsxoptions)\n    *   [`Options`](#options)\n*   [Authoring](#authoring)\n*   [Syntax](#syntax)\n*   [Errors](#errors)\n    *   [Unexpected end of file $at, expected $expect](#unexpected-end-of-file-at-expected-expect)\n    *   [Unexpected character $at, expected $expect](#unexpected-character-at-expected-expect)\n    *   [Unexpected lazy line in container, expected line to be…](#unexpected-lazy-line-in-container-expected-line-to-be)\n*   [Tokens](#tokens)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Security](#security)\n*   [Related](#related)\n*   [Contribute](#contribute)\n*   [License](#license)\n\n## What is this?\n\nThis package contains an extension that adds support for the JSX syntax enabled\nby [MDX][mdxjs] to [`micromark`][micromark].\nThese extensions are used inside MDX.\nIt mostly matches how JSX works in most places that support it (TypeScript,\nBabel, esbuild, SWC, etc).\n\nThis package can be made aware or unaware of JavaScript syntax.\nWhen unaware, expressions could include Rust or variables or whatnot.\n\n## When to use this\n\nThis project is useful when you want to support JSX in markdown.\n\nYou can use this extension when you are working with [`micromark`][micromark].\nTo support all MDX features, use\n[`micromark-extension-mdxjs`][micromark-extension-mdxjs] instead.\n\nWhen you need a syntax tree, combine this package with\n[`mdast-util-mdx-jsx`][mdast-util-mdx-jsx].\n\nAll these packages are used in [`remark-mdx`][remark-mdx], which focusses on\nmaking it easier to transform content by abstracting these internals away.\n\nWhen you are using [`mdx-js/mdx`][mdxjs], all of this is already included.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 16+), install with [npm][]:\n\n```sh\nnpm install micromark-extension-mdx-jsx\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport {mdxJsx} from 'https://esm.sh/micromark-extension-mdx-jsx@2'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n<script type=\"module\">\n  import {mdxJsx} from 'https://esm.sh/micromark-extension-mdx-jsx@2?bundle'\n</script>\n```\n\n## Use\n\n```js\nimport {micromark} from 'micromark'\nimport {mdxJsx} from 'micromark-extension-mdx-jsx'\n\nconst output = micromark('a <b c d=\"e\" /> f', {extensions: [mdxJsx()]})\n\nconsole.log(output)\n```\n\nYields:\n\n```html\n<p>a  f</p>\n```\n\n…which is useless: go to a syntax tree with\n[`mdast-util-from-markdown`][mdast-util-from-markdown] and\n[`mdast-util-mdx-jsx`][mdast-util-mdx-jsx] instead.\n\n## API\n\nThis package exports the identifier [`mdxJsx`][api-mdx-jsx].\nThere is no default export.\n\nThe export map supports the [`development` condition][development].\nRun `node --conditions development module.js` to get instrumented dev code.\nWithout this condition, production code is loaded.\n\n### `mdxJsx(options?)`\n\nCreate an extension for `micromark` to enable MDX JSX syntax.\n\n###### Parameters\n\n*   `options` ([`Options`][api-options], optional)\n    — configuration\n\n###### Returns\n\nExtension for `micromark` that can be passed in `extensions` to enable MDX\nJSX syntax ([`Extension`][micromark-extension]).\n\n### `Options`\n\nConfiguration (TypeScript type).\n\n###### Fields\n\n*   `acorn` ([`Acorn`][acorn], optional)\n    — acorn parser to use\n*   `acornOptions` ([`AcornOptions`][acorn-options], default:\n    `{ecmaVersion: 2024, locations: true, sourceType: 'module'}`)\n    — configuration for acorn; all fields except `locations` can be set\n*   `addResult` (`boolean`, default: `false`)\n    — whether to add `estree` fields to tokens with results from acorn\n\n## Authoring\n\nWhen authoring markdown with JSX, keep in mind that MDX is a whitespace\nsensitive and line-based language, while JavaScript is insensitive to\nwhitespace.\nThis affects how markdown and JSX interleave with eachother in MDX.\nFor more info on how it works, see [§ Interleaving][mdxjs-interleaving] on the\nMDX site.\n\n###### Comments inside tags\n\nJavaScript comments in JSX are not supported.\n\nIncorrect:\n\n```mdx-invalid\n<hi/*comment!*//>\n<hello// comment!\n/>\n```\n\nCorrect:\n\n```mdx\n<hi/>\n<hello\n/>\n```\n\nA PR that adds support for them would be accepted.\n\n###### Element or fragment attribute values\n\nJSX elements or JSX fragments as attribute values are not supported.\nThe reason for this change is that it would be confusing whether markdown\nwould work.\n\nIncorrect:\n\n```mdx-invalid\n<welcome name=<>Venus</> />\n<welcome name=<span>Pluto</span> />\n```\n\nCorrect:\n\n```mdx\n<welcome name='Mars' />\n<welcome name={<span>Jupiter</span>} />\n```\n\n###### Greater than (`>`) and right curly brace (`}`)\n\nJSX does not allow U+003E GREATER THAN (`>`) or U+007D RIGHT CURLY BRACE\n(`}`) literally in text, they need to be encoded as character references\n(or expressions).\nThere is no good reason for this (some JSX parsers agree with us and don’t\ncrash either).\nTherefore, in MDX, U+003E GREATER THAN (`>`) and U+007D RIGHT CURLY BRACE\n(`}`) are fine literally and don’t need to be encoded.\n\n## Syntax\n\nJSX forms with the following BNF:\n\n<!--grammar start-->\n\n<pre><code><a id=x-mdx-jsx-flow href=#x-mdx-jsx-flow>mdx_jsx_flow</a> ::= <a href=#x-mdx-jsx>mdx_jsx</a> *<a href=#x-space-or-tab>space_or_tab</a> [<a href=#x-mdx-jsx>mdx_jsx</a> *<a href=#x-space-or-tab>space_or_tab</a>]\n<a id=x-mdx-jsx-text href=#x-mdx-jsx-text>mdx_jsx_text</a> ::= <a href=#x-mdx-jsx>mdx_jsx</a>\n\n; constraint: markdown whitespace (`<a href=#x-space-or-tab>space_or_tab</a> | <a href=#x-eol>eol</a>`) is NOT\n; allowed directly after `&lt;` in order to allow `1 &lt; 3` in markdown.\n<a id=x-mdx-jsx href=#x-mdx-jsx>mdx_jsx</a> ::=\n  '&lt;' [<a href=#x-closing>closing</a>]\n  [*<a href=#x-whitespace>whitespace</a> <a href=#x-name>name</a> [<a href=#x-attributes-after-identifier>attributes_after_identifier</a>] [<a href=#x-closing>closing</a>]]\n  *<a href=#x-whitespace>whitespace</a> '>'\n\n<a id=x-attributes-after-identifier href=#x-attributes-after-identifier>attributes_after_identifier</a> ::=\n  1*<a href=#x-whitespace>whitespace</a> (<a href=#x-attributes-boolean>attributes_boolean</a> | <a href=#x-attributes-value>attributes_value</a>) |\n  *<a href=#x-whitespace>whitespace</a> <a href=#x-attributes-expression>attributes_expression</a> |\n<a id=x-attributes-after-value href=#x-attributes-after-value>attributes_after_value</a> ::=\n  *<a href=#x-whitespace>whitespace</a> (<a href=#x-attributes-boolean>attributes_boolean</a> | <a href=#x-attributes-expression>attributes_expression</a> | <a href=#x-attributes-value>attributes_value</a>)\n<a id=x-attributes-boolean href=#x-attributes-boolean>attributes_boolean</a> ::= <a href=#x-key>key</a> [<a href=#x-attributes-after-identifier>attributes_after_identifier</a>]\n; Note: in gnostic mode the value of the expression must instead be a single valid ES spread\n; expression\n<a id=x-attributes-expression href=#x-attributes-expression>attributes_expression</a> ::= <a href=#x-expression>expression</a> [<a href=#x-attributes-after-value>attributes_after_value</a>]\n<a id=x-attributes-value href=#x-attributes-value>attributes_value</a> ::= <a href=#x-key>key</a> <a href=#x-initializer>initializer</a> [<a href=#x-attributes-after-value>attributes_after_value</a>]\n\n<a id=x-closing href=#x-closing>closing</a> ::= *<a href=#x-whitespace>whitespace</a> '/'\n\n<a id=x-name href=#x-name>name</a> ::= <a href=#x-identifier>identifier</a> [<a href=#x-local>local</a> | <a href=#x-members>members</a>]\n<a id=x-key href=#x-key>key</a> ::= <a href=#x-identifier>identifier</a> [<a href=#x-local>local</a>]\n<a id=x-local href=#x-local>local</a> ::= *<a href=#x-whitespace>whitespace</a> ':' *<a href=#x-whitespace>whitespace</a> <a href=#x-identifier>identifier</a>\n<a id=x-members href=#x-members>members</a> ::= <a href=#x-member>member</a> *<a href=#x-member>member</a>\n<a id=x-member href=#x-member>member</a> ::= *<a href=#x-whitespace>whitespace</a> '.' *<a href=#x-whitespace>whitespace</a> <a href=#x-identifier>identifier</a>\n\n<a id=x-identifier href=#x-identifier>identifier</a> ::= <a href=#x-identifier-start>identifier_start</a> *<a href=#x-identifier-part>identifier_part</a>\n<a id=x-initializer href=#x-initializer>initializer</a> ::= *<a href=#x-whitespace>whitespace</a> '=' *<a href=#x-whitespace>whitespace</a> <a href=#x-value>value</a>\n<a id=x-value href=#x-value>value</a> ::= <a href=#x-double-quoted>double_quoted</a> | <a href=#x-single-quoted>single_quoted</a> | <a href=#x-expression>expression</a>\n; Note: in gnostic mode the value must instead be a single valid ES expression\n<a id=x-expression href=#x-expression>expression</a> ::= '{' *(<a href=#x-expression-text>expression_text</a> | <a href=#x-expression>expression</a>) '}'\n\n<a id=x-double-quoted href=#x-double-quoted>double_quoted</a> ::= '\"' *<a href=#x-double-quoted-text>double_quoted_text</a> '\"'\n<a id=x-single-quoted href=#x-single-quoted>single_quoted</a> ::= \"'\" *<a href=#x-single-quoted-text>single_quoted_text</a> \"'\"\n\n<a id=x-whitespace href=#x-whitespace>whitespace</a> ::= <a href=#x-es-whitespace>es_whitespace</a>\n<a id=x-double-quoted-text href=#x-double-quoted-text>double_quoted_text</a> ::= char - '\"'\n<a id=x-single-quoted-text href=#x-single-quoted-text>single_quoted_text</a> ::= char - \"'\"\n<a id=x-expression-text href=#x-expression-text>expression_text</a> ::= char - '{' - '}'\n<a id=x-identifier-start href=#x-identifier-start>identifier_start</a> ::= <a href=#x-es-identifier-start>es_identifier_start</a>\n<a id=x-identifier-part href=#x-identifier-part>identifier_part</a> ::= <a href=#x-es-identifier-part>es_identifier_part</a> | '-'\n\n<a id=x-space-or-tab href=#x-space-or-tab>space_or_tab</a> ::= '\\t' | ' '\n<a id=x-eol href=#x-eol>eol</a> ::= '\\n' | '\\r' | '\\r\\n'\n\n; ECMAScript\n; See “IdentifierStart”: &lt;<a href=https://tc39.es/ecma262/#prod-IdentifierStart>https://tc39.es/ecma262/#prod-IdentifierStart</a>>\n<a id=x-es-identifier-start href=#x-es-identifier-start>es_identifier_start</a> ::= ?\n; See “IdentifierPart”: &lt;<a href=https://tc39.es/ecma262/#prod-IdentifierPart>https://tc39.es/ecma262/#prod-IdentifierPart</a>>\n<a id=x-es-identifier-part href=#x-es-identifier-part>es_identifier_part</a> ::= ?\n; See “Whitespace”: &lt;<a href=https://tc39.es/ecma262/#prod-WhiteSpace>https://tc39.es/ecma262/#prod-WhiteSpace</a>>\n<a id=x-es-whitespace href=#x-es-whitespace>es_whitespace</a> ::= ?\n</code></pre>\n\n<!--grammar end-->\n\nAs the flow construct occurs in flow, like all flow constructs, it must be\nfollowed by an eol (line ending) or eof (end of file).\n\nThe grammar for JSX in markdown is much stricter than that of HTML in\nmarkdown.\nThe primary benefit of this is that tags are parsed into tokens, and thus\ncan be processed.\nAnother, arguable, benefit of this is that it comes with syntax errors: if\nan author types something that is nonsensical, an error is thrown with\ninformation about where it happened, what occurred, and what was expected\ninstead.\n\nThis extension supports expressions both aware and unaware to JavaScript\n(respectively gnostic and agnostic).\nDepending on whether acorn is passed, either valid JavaScript must be used in\nexpressions, or arbitrary text (such as Rust code or so) can be used.\n\nMore on this can be found in\n[§ Syntax of `micromark-extension-mdx-expression`][expression-syntax].\n\n## Errors\n\nIn aware (gnostic) mode, expressions are parsed with\n[`micromark-extension-mdx-expression`][micromark-extension-mdx-expression],\nwhich throws some more errors.\n\n### Unexpected end of file $at, expected $expect\n\nThis error occurs for many different reasons if something was opened but not\nclosed (source: `micromark-extension-mdx-jsx`, rule id: `unexpected-eof`).\n\nSome examples are:\n\n```mdx-invalid\n<\n</\n<a\n<a:\n<a.\n<a b\n<a b:\n<a b=\n<a b=\"\n<a b='\n<a b={\n<a/\n```\n\n### Unexpected character $at, expected $expect\n\nThis error occurs for many different reasons if an unexpected character is seen\n(source: `micromark-extension-mdx-jsx`, rule id: `unexpected-character`).\n\nSome examples are:\n\n```mdx-invalid\n<.>\n</.>\n<a?>\n<a:+>\n<a./>\n<a b!>\n<a b:1>\n<a b=>\n<a/->\n```\n\n### Unexpected lazy line in container, expected line to be…\n\nThis error occurs if a `<` was seen in a container which then has lazy content\n(source: `micromark-extension-mdx-jsx`, rule id: `unexpected-lazy`).\nFor example:\n\n```mdx-invalid\n> <a\nb>\n```\n\n## Tokens\n\nMany tokens are used:\n\n*   `mdxJsxFlowTag` for the whole JSX tag (`<a>`)\n*   `mdxJsxTextTag` ^\n*   `mdxJsxFlowTagMarker` for the tag markers (`<`, `>`)\n*   `mdxJsxTextTagMarker` ^\n*   `mdxJsxFlowTagClosingMarker` for the `/` marking a closing tag (`</a>`)\n*   `mdxJsxTextTagClosingMarker` ^\n*   `mdxJsxFlowTagSelfClosingMarker` for the `/` marking a self-closing tag\n    (`<a/>`)\n*   `mdxJsxTextTagSelfClosingMarker` ^\n*   `mdxJsxFlowTagName` for the whole tag name (`a:b` in `<a:b>`)\n*   `mdxJsxTextTagName` ^\n*   `mdxJsxFlowTagNamePrimary` for the first name (`a` in `<a:b>`)\n*   `mdxJsxTextTagNamePrimary` ^\n*   `mdxJsxFlowTagNameMemberMarker` for the `.` marking in members (`<a.b>`)\n*   `mdxJsxTextTagNameMemberMarker` ^\n*   `mdxJsxFlowTagNameMember` for member names (`b` in `<a:b>`)\n*   `mdxJsxTextTagNameMember` ^\n*   `mdxJsxFlowTagNamePrefixMarker` for the `:` between primary and local\n    (`<a:b>`)\n*   `mdxJsxTextTagNamePrefixMarker` ^\n*   `mdxJsxFlowTagNameLocal` for the local name (`b` in `<a:b>`)\n*   `mdxJsxTextTagNameLocal` ^\n*   `mdxJsxFlowTagExpressionAttribute` for whole expression attributes\n    (`<a {...b}>`)\n*   `mdxJsxTextTagExpressionAttribute` ^\n*   `mdxJsxFlowTagExpressionAttributeMarker` for `{`, `}` in expression\n    attributes\n*   `mdxJsxTextTagExpressionAttributeMarker` ^\n*   `mdxJsxFlowTagExpressionAttributeValue` for chunks of what’s inside\n    expression attributes\n*   `mdxJsxTextTagExpressionAttributeValue` ^\n*   `mdxJsxFlowTagAttribute` for a whole normal attribute (`<a b>`)\n*   `mdxJsxTextTagAttribute` ^\n*   `mdxJsxFlowTagAttributeName` for the whole name of an attribute (`b:c` in\n    `<a b:c>`)\n*   `mdxJsxTextTagAttributeName` ^\n*   `mdxJsxFlowTagAttributeNamePrimary` for the first name of an attribute (`b`\n    in `<a b:c>`)\n*   `mdxJsxTextTagAttributeNamePrimary` ^\n*   `mdxJsxFlowTagAttributeNamePrefixMarker` for the `:` between primary and\n    local (`<a b:c>`)\n*   `mdxJsxTextTagAttributeNamePrefixMarker` ^\n*   `mdxJsxFlowTagAttributeNameLocal` for the local name of an attribute (`c`\n    in `<a b:c>`)\n*   `mdxJsxTextTagAttributeNameLocal` ^\n*   `mdxJsxFlowTagAttributeInitializerMarker` for the `=` between an attribute\n    name and value\n*   `mdxJsxTextTagAttributeInitializerMarker` ^\n*   `mdxJsxFlowTagAttributeValueLiteral` for a string attribute value\n    (`<a b=\"\">`)\n*   `mdxJsxTextTagAttributeValueLiteral` ^\n*   `mdxJsxFlowTagAttributeValueLiteralMarker` for the quotes around a string\n    attribute value (`\"` or `'`)\n*   `mdxJsxTextTagAttributeValueLiteralMarker` ^\n*   `mdxJsxFlowTagAttributeValueLiteralValue` for chunks of what’s inside\n    string attribute values\n*   `mdxJsxTextTagAttributeValueLiteralValue` ^\n*   `mdxJsxFlowTagAttributeValueExpression` for an expression attribute value\n    (`<a b={1}>`)\n*   `mdxJsxTextTagAttributeValueExpression` ^\n*   `mdxJsxFlowTagAttributeValueExpressionMarker` for the `{` and `}` of\n    expression attribute values\n*   `mdxJsxTextTagAttributeValueExpressionMarker` ^\n*   `mdxJsxFlowTagAttributeValueExpressionValue` for chunks of what’s inside\n    expression attribute values\n*   `mdxJsxTextTagAttributeValueExpressionValue` ^\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports the additional type [`Options`][api-options].\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,\n`micromark-extension-mdx-jsx@^2`, compatible with Node.js 16.\n\nThis package works with `micromark` version `3` and later.\n\n## Security\n\nThis package is safe.\n\n## Related\n\n*   [`micromark-extension-mdxjs`][micromark-extension-mdxjs]\n    — support all MDX syntax\n*   [`mdast-util-mdx-jsx`][mdast-util-mdx-jsx]\n    — support MDX JSX in mdast\n*   [`remark-mdx`][remark-mdx]\n    — support all MDX syntax in remark\n\n## Contribute\n\nSee [`contributing.md` in `micromark/.github`][contributing] for ways to get\nstarted.\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<!-- Definitions -->\n\n[build-badge]: https://github.com/micromark/micromark-extension-mdx-jsx/workflows/main/badge.svg\n\n[build]: https://github.com/micromark/micromark-extension-mdx-jsx/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/micromark/micromark-extension-mdx-jsx.svg\n\n[coverage]: https://codecov.io/github/micromark/micromark-extension-mdx-jsx\n\n[downloads-badge]: https://img.shields.io/npm/dm/micromark-extension-mdx-jsx.svg\n\n[downloads]: https://www.npmjs.com/package/micromark-extension-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=micromark-extension-mdx-jsx\n\n[size]: https://bundlejs.com/?q=micromark-extension-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/micromark/micromark/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[contributing]: https://github.com/micromark/.github/blob/main/contributing.md\n\n[support]: https://github.com/micromark/.github/blob/main/support.md\n\n[coc]: https://github.com/micromark/.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[development]: https://nodejs.org/api/packages.html#packages_resolving_user_conditions\n\n[micromark]: https://github.com/micromark/micromark\n\n[micromark-extension]: https://github.com/micromark/micromark#syntaxextension\n\n[micromark-extension-mdxjs]: https://github.com/micromark/micromark-extension-mdxjs\n\n[micromark-extension-mdx-expression]: https://github.com/micromark/micromark-extension-mdx-expression\n\n[expression-syntax]: https://github.com/micromark/micromark-extension-mdx-expression/blob/main/packages/micromark-extension-mdx-expression/readme.md#syntax\n\n[mdast-util-mdx-jsx]: https://github.com/syntax-tree/mdast-util-mdx-jsx\n\n[mdast-util-from-markdown]: https://github.com/syntax-tree/mdast-util-from-markdown\n\n[remark-mdx]: https://mdxjs.com/packages/remark-mdx/\n\n[mdxjs]: https://mdxjs.com\n\n[mdxjs-interleaving]: https://mdxjs.com/docs/what-is-mdx/#interleaving\n\n[acorn]: https://github.com/acornjs/acorn\n\n[acorn-options]: https://github.com/acornjs/acorn/blob/96c721dbf89d0ccc3a8c7f39e69ef2a6a3c04dfa/acorn/dist/acorn.d.ts#L16\n\n[api-mdx-jsx]: #mdxjsxoptions\n\n[api-options]: #options\n","publish_time":1607450508047,"_cnpm_publish_time":1607450508047,"dist-tags":{"latest":"3.0.2"}}