{"_id":"mdast-util-mdx-expression","_rev":"3759766","name":"mdast-util-mdx-expression","description":"mdast extension to parse and serialize MDX (or MDX.js) expressions","dist-tags":{"latest":"2.0.1"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"time":{"modified":"2025-04-22T08:04:50.000Z","created":"2020-11-30T17:13:29.042Z","2.0.1":"2024-09-13T10:36:30.801Z","2.0.0":"2023-07-11T15:21:14.631Z","1.3.2":"2023-01-31T13:11:40.242Z","1.3.1":"2022-09-30T16:44:35.844Z","1.3.0":"2022-07-24T10:35:51.208Z","1.2.1":"2022-06-05T09:08:29.356Z","1.2.0":"2022-01-31T17:33:28.654Z","1.1.1":"2021-09-23T11:01:00.318Z","1.1.0":"2021-07-28T12:35:11.515Z","1.0.0":"2021-06-22T21:16:20.514Z","0.1.1":"2020-12-09T15:17:14.799Z","0.1.0":"2020-11-30T17:13:29.042Z"},"users":{},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"repository":{"type":"git","url":"git+https://github.com/syntax-tree/mdast-util-mdx-expression.git"},"versions":{"2.0.1":{"name":"mdast-util-mdx-expression","version":"2.0.1","description":"mdast extension to parse and serialize MDX (or MDX.js) expressions","license":"MIT","keywords":["unist","mdast","mdast-util","util","utility","markdown","markup","mdx","mdxjs","expression","extension"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/mdast-util-mdx-expression.git"},"bugs":{"url":"https://github.com/syntax-tree/mdast-util-mdx-expression/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","devlop":"^1.0.0","mdast-util-from-markdown":"^2.0.0","mdast-util-to-markdown":"^2.0.0"},"devDependencies":{"@types/acorn":"^4.0.0","@types/node":"^22.0.0","acorn":"^8.0.0","c8":"^10.0.0","micromark-extension-mdx-expression":"^3.0.0","prettier":"^3.0.0","remark-cli":"^12.0.0","remark-preset-wooorm":"^10.0.0","type-coverage":"^2.0.0","typescript":"^5.0.0","unist-util-remove-position":"^5.0.0","xo":"^0.59.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":{"unicorn/prefer-at":"off"}},"_id":"mdast-util-mdx-expression@2.0.1","gitHead":"54ed28603e632b85512e5cb53896aba7c02c77f7","types":"./index.d.ts","homepage":"https://github.com/syntax-tree/mdast-util-mdx-expression#readme","_nodeVersion":"22.7.0","_npmVersion":"10.8.3","dist":{"shasum":"43f0abac9adc756e2086f63822a38c8d3c3a5096","size":7115,"noattachment":false,"key":"/mdast-util-mdx-expression/-/mdast-util-mdx-expression-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/mdast-util-mdx-expression/download/mdast-util-mdx-expression-2.0.1.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mdast-util-mdx-expression_2.0.1_1726223790668_0.35440477958500827"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-09-13T10:36:30.801Z","publish_time":1726223790801,"_source_registry_name":"default","_cnpm_publish_time":1726223790801},"2.0.0":{"name":"mdast-util-mdx-expression","version":"2.0.0","description":"mdast extension to parse and serialize MDX (or MDX.js) expressions","license":"MIT","keywords":["unist","mdast","mdast-util","util","utility","markdown","markup","mdx","mdxjs","expression","extension"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/mdast-util-mdx-expression.git"},"bugs":{"url":"https://github.com/syntax-tree/mdast-util-mdx-expression/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","devlop":"^1.0.0","mdast-util-from-markdown":"^2.0.0","mdast-util-to-markdown":"^2.0.0"},"devDependencies":{"@types/acorn":"^4.0.0","@types/node":"^20.0.0","acorn":"^8.0.0","c8":"^8.0.0","micromark-extension-mdx-expression":"^2.0.0","prettier":"^2.0.0","remark-cli":"^11.0.0","remark-preset-wooorm":"^9.0.0","type-coverage":"^2.0.0","typescript":"^5.0.0","unist-util-remove-position":"^5.0.0","xo":"^0.54.0"},"scripts":{"prepack":"npm run build && npm run format","build":"tsc --build --clean && tsc --build && type-coverage","format":"remark . -qfo && prettier . -w --loglevel 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},"gitHead":"1d65860da7b6d46d4ffbe7a06f38beb654a654cd","types":"./index.d.ts","homepage":"https://github.com/syntax-tree/mdast-util-mdx-expression#readme","_id":"mdast-util-mdx-expression@2.0.0","_nodeVersion":"20.0.0","_npmVersion":"9.7.2","dist":{"shasum":"4968b73724d320a379110d853e943a501bfd9d87","size":6656,"noattachment":false,"key":"/mdast-util-mdx-expression/-/mdast-util-mdx-expression-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mdast-util-mdx-expression/download/mdast-util-mdx-expression-2.0.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mdast-util-mdx-expression_2.0.0_1689088874216_0.41396209132887174"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-07-11T15:21:14.631Z","publish_time":1689088874631,"_source_registry_name":"default","_cnpm_publish_time":1689088874631},"1.3.2":{"name":"mdast-util-mdx-expression","version":"1.3.2","description":"mdast extension to parse and serialize MDX (or MDX.js) expressions","license":"MIT","keywords":["unist","mdast","mdast-util","util","utility","markdown","markup","mdx","mdxjs","expression","extension"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/mdast-util-mdx-expression.git"},"bugs":{"url":"https://github.com/syntax-tree/mdast-util-mdx-expression/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","main":"index.js","types":"index.d.ts","dependencies":{"@types/estree-jsx":"^1.0.0","@types/hast":"^2.0.0","@types/mdast":"^3.0.0","mdast-util-from-markdown":"^1.0.0","mdast-util-to-markdown":"^1.0.0"},"devDependencies":{"@types/acorn":"^4.0.0","@types/node":"^18.0.0","acorn":"^8.0.0","c8":"^7.0.0","micromark-extension-mdx-expression":"^1.0.0","prettier":"^2.0.0","remark-cli":"^11.0.0","remark-preset-wooorm":"^9.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","unist-util-remove-position":"^4.0.0","xo":"^0.53.0"},"scripts":{"prepack":"npm run build && npm run format","build":"tsc --build --clean && tsc --build && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test.js","test-coverage":"c8 --check-coverage --100 --reporter lcov npm run test-api","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"gitHead":"6312e34c0e8eea0499175aaf88ec8ca9ac0ec746","homepage":"https://github.com/syntax-tree/mdast-util-mdx-expression#readme","_id":"mdast-util-mdx-expression@1.3.2","_nodeVersion":"19.3.0","_npmVersion":"9.2.0","dist":{"shasum":"d027789e67524d541d6de543f36d51ae2586f220","size":6514,"noattachment":false,"key":"/mdast-util-mdx-expression/-/mdast-util-mdx-expression-1.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/mdast-util-mdx-expression/download/mdast-util-mdx-expression-1.3.2.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mdast-util-mdx-expression_1.3.2_1675170700078_0.3391499326070231"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-31T13:11:40.242Z","publish_time":1675170700242,"_cnpm_publish_time":1675170700242},"1.3.1":{"name":"mdast-util-mdx-expression","version":"1.3.1","description":"mdast extension to parse and serialize MDX (or MDX.js) expressions","license":"MIT","keywords":["unist","mdast","mdast-util","util","utility","markdown","markup","mdx","mdxjs","expression","extension"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/mdast-util-mdx-expression.git"},"bugs":{"url":"https://github.com/syntax-tree/mdast-util-mdx-expression/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","main":"index.js","types":"index.d.ts","dependencies":{"@types/estree-jsx":"^1.0.0","@types/hast":"^2.0.0","@types/mdast":"^3.0.0","mdast-util-from-markdown":"^1.0.0","mdast-util-to-markdown":"^1.0.0"},"devDependencies":{"@types/acorn":"^4.0.0","@types/tape":"^4.0.0","acorn":"^8.0.0","c8":"^7.0.0","micromark-extension-mdx-expression":"^1.0.0","prettier":"^2.0.0","remark-cli":"^11.0.0","remark-preset-wooorm":"^9.0.0","rimraf":"^3.0.0","tape":"^5.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","unist-util-remove-position":"^4.0.0","xo":"^0.52.0"},"scripts":{"build":"rimraf \"{index,test}.d.ts\" && tsc && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node --conditions development test.js","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"gitHead":"a8ce12c164e71becf8b6344e3a66108dee9acb9e","homepage":"https://github.com/syntax-tree/mdast-util-mdx-expression#readme","_id":"mdast-util-mdx-expression@1.3.1","_nodeVersion":"18.2.0","_npmVersion":"8.19.1","dist":{"shasum":"2224cf0b5b150093704a3c225bd529d2de21f50f","size":5477,"noattachment":false,"key":"/mdast-util-mdx-expression/-/mdast-util-mdx-expression-1.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/mdast-util-mdx-expression/download/mdast-util-mdx-expression-1.3.1.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mdast-util-mdx-expression_1.3.1_1664556275663_0.4727705736975629"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-09-30T16:51:47.152Z","publish_time":1664556275844,"_cnpm_publish_time":1664556275844},"1.3.0":{"name":"mdast-util-mdx-expression","version":"1.3.0","description":"mdast extension to parse and serialize MDX (or MDX.js) expressions","license":"MIT","keywords":["unist","mdast","mdast-util","util","utility","markdown","markup","mdx","mdxjs","expression","extension"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/mdast-util-mdx-expression.git"},"bugs":{"url":"https://github.com/syntax-tree/mdast-util-mdx-expression/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","main":"index.js","types":"index.d.ts","dependencies":{"@types/estree-jsx":"^1.0.0","@types/hast":"^2.0.0","@types/mdast":"^3.0.0","mdast-util-from-markdown":"^1.0.0","mdast-util-to-markdown":"^1.0.0"},"devDependencies":{"@types/acorn":"^4.0.0","@types/tape":"^4.0.0","acorn":"^8.0.0","c8":"^7.0.0","micromark-extension-mdx-expression":"^1.0.0","prettier":"^2.0.0","remark-cli":"^11.0.0","remark-preset-wooorm":"^9.0.0","rimraf":"^3.0.0","tape":"^5.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","unist-util-remove-position":"^4.0.0","xo":"^0.51.0"},"scripts":{"build":"rimraf \"{index,test}.d.ts\" && tsc && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node --conditions development test.js","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"gitHead":"0693e9f5aee5e8a5292e892d15f9d42701deebe7","homepage":"https://github.com/syntax-tree/mdast-util-mdx-expression#readme","_id":"mdast-util-mdx-expression@1.3.0","_nodeVersion":"18.2.0","_npmVersion":"8.13.2","dist":{"shasum":"fed063cc6320da1005c8e50338bb374d6dac69ba","size":5433,"noattachment":false,"key":"/mdast-util-mdx-expression/-/mdast-util-mdx-expression-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mdast-util-mdx-expression/download/mdast-util-mdx-expression-1.3.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mdast-util-mdx-expression_1.3.0_1658658951047_0.22672889372267657"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-07-24T10:35:55.528Z","publish_time":1658658951208,"_cnpm_publish_time":1658658951208},"1.2.1":{"name":"mdast-util-mdx-expression","version":"1.2.1","description":"mdast extension to parse and serialize MDX (or MDX.js) expressions","license":"MIT","keywords":["unist","mdast","mdast-util","util","utility","markdown","markup","mdx","mdxjs","expression","extension"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/mdast-util-mdx-expression.git"},"bugs":{"url":"https://github.com/syntax-tree/mdast-util-mdx-expression/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","main":"index.js","types":"index.d.ts","dependencies":{"@types/estree-jsx":"^0.0.1","@types/hast":"^2.0.0","@types/mdast":"^3.0.0","mdast-util-from-markdown":"^1.0.0","mdast-util-to-markdown":"^1.0.0"},"devDependencies":{"@types/acorn":"^4.0.0","@types/tape":"^4.0.0","acorn":"^8.0.0","c8":"^7.0.0","micromark-extension-mdx-expression":"^1.0.0","prettier":"^2.0.0","remark-cli":"^10.0.0","remark-preset-wooorm":"^9.0.0","rimraf":"^3.0.0","tape":"^5.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","unist-util-remove-position":"^4.0.0","xo":"^0.49.0"},"scripts":{"build":"rimraf \"{index,test}.d.ts\" && tsc && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node --conditions development test.js","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"gitHead":"7a9d032beca2b2df589c976a0f1321b185923ab3","homepage":"https://github.com/syntax-tree/mdast-util-mdx-expression#readme","_id":"mdast-util-mdx-expression@1.2.1","_nodeVersion":"18.2.0","_npmVersion":"8.9.0","dist":{"shasum":"3195450498c438fbdb82838c23d9b3f8b23174da","size":5437,"noattachment":false,"key":"/mdast-util-mdx-expression/-/mdast-util-mdx-expression-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/mdast-util-mdx-expression/download/mdast-util-mdx-expression-1.2.1.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mdast-util-mdx-expression_1.2.1_1654420109197_0.642991779276282"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-06-05T13:56:27.570Z","publish_time":1654420109356,"_cnpm_publish_time":1654420109356},"1.2.0":{"name":"mdast-util-mdx-expression","version":"1.2.0","description":"mdast extension to parse and serialize MDX (or MDX.js) expressions","license":"MIT","keywords":["unist","mdast","mdast-util","util","utility","markdown","markup","mdx","mdxjs","expression","extension"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/mdast-util-mdx-expression.git"},"bugs":{"url":"https://github.com/syntax-tree/mdast-util-mdx-expression/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","main":"index.js","types":"index.d.ts","dependencies":{"@types/estree-jsx":"^0.0.1","@types/hast":"^2.0.0","@types/mdast":"^3.0.0","mdast-util-from-markdown":"^1.0.0","mdast-util-to-markdown":"^1.0.0"},"devDependencies":{"@types/acorn":"^4.0.0","@types/tape":"^4.0.0","acorn":"^8.0.0","c8":"^7.0.0","micromark-extension-mdx-expression":"^1.0.0","prettier":"^2.0.0","remark-cli":"^10.0.0","remark-preset-wooorm":"^9.0.0","rimraf":"^3.0.0","tape":"^5.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","unist-util-remove-position":"^4.0.0","xo":"^0.47.0"},"scripts":{"build":"rimraf \"{index,test}.d.ts\" && tsc && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node --conditions development test.js","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"gitHead":"e87a677a8a669c5c7384548e3fb0264a8aa750ea","homepage":"https://github.com/syntax-tree/mdast-util-mdx-expression#readme","_id":"mdast-util-mdx-expression@1.2.0","_nodeVersion":"17.4.0","_npmVersion":"8.3.1","dist":{"shasum":"3e927afe27943956dc5d1c64cb949652062f71ff","size":4887,"noattachment":false,"key":"/mdast-util-mdx-expression/-/mdast-util-mdx-expression-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mdast-util-mdx-expression/download/mdast-util-mdx-expression-1.2.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mdast-util-mdx-expression_1.2.0_1643650408511_0.09785372401814518"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-01-31T17:33:54.982Z","publish_time":1643650408654,"_cnpm_publish_time":1643650408654},"1.1.1":{"name":"mdast-util-mdx-expression","version":"1.1.1","description":"mdast extension to parse and serialize MDX (or MDX.js) expressions","license":"MIT","keywords":["unist","mdast","mdast-util","util","utility","markdown","markup","mdx","mdxjs","expression","extension"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/mdast-util-mdx-expression.git"},"bugs":{"url":"https://github.com/syntax-tree/mdast-util-mdx-expression/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","main":"index.js","types":"index.d.ts","dependencies":{"@types/estree-jsx":"^0.0.1"},"devDependencies":{"@types/acorn":"^4.0.0","@types/tape":"^4.0.0","acorn":"^8.0.0","c8":"^7.0.0","mdast-util-from-markdown":"^1.0.0","mdast-util-to-markdown":"^1.0.0","micromark-extension-mdx-expression":"^1.0.0","prettier":"^2.0.0","remark-cli":"^10.0.0","remark-preset-wooorm":"^9.0.0","rimraf":"^3.0.0","tape":"^5.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","unist-util-remove-position":"^4.0.0","xo":"^0.44.0"},"scripts":{"build":"rimraf \"{index,test}.d.ts\" && tsc && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node --conditions development test.js","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"gitHead":"8f987cbb2f62204444054e901eb54d1e14b36872","homepage":"https://github.com/syntax-tree/mdast-util-mdx-expression#readme","_id":"mdast-util-mdx-expression@1.1.1","_nodeVersion":"16.9.0","_npmVersion":"7.23.0","dist":{"shasum":"657522e78b84f5c85cd2395776aba8dcfb7bbb0f","size":4823,"noattachment":false,"key":"/mdast-util-mdx-expression/-/mdast-util-mdx-expression-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/mdast-util-mdx-expression/download/mdast-util-mdx-expression-1.1.1.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mdast-util-mdx-expression_1.1.1_1632394860133_0.33392223130077126"},"_hasShrinkwrap":false,"publish_time":1632394860318,"_cnpm_publish_time":1632394860318},"1.1.0":{"name":"mdast-util-mdx-expression","version":"1.1.0","description":"mdast extension to parse and serialize MDX (or MDX.js) expressions","license":"MIT","keywords":["unist","mdast","mdast-util","util","utility","markdown","markup","mdx","mdxjs","expression","extension"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/mdast-util-mdx-expression.git"},"bugs":{"url":"https://github.com/syntax-tree/mdast-util-mdx-expression/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","main":"index.js","types":"index.d.ts","dependencies":{"@types/estree-jsx":"^0.0.1","strip-indent":"^4.0.0"},"devDependencies":{"@types/acorn":"^4.0.0","@types/tape":"^4.0.0","acorn":"^8.0.0","c8":"^7.0.0","mdast-util-from-markdown":"^1.0.0","mdast-util-to-markdown":"^1.0.0","micromark-extension-mdx-expression":"^1.0.0","prettier":"^2.0.0","remark-cli":"^9.0.0","remark-preset-wooorm":"^8.0.0","rimraf":"^3.0.0","tape":"^5.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","unist-util-remove-position":"^4.0.0","xo":"^0.39.0"},"scripts":{"build":"rimraf \"{index,test}.d.ts\" && tsc && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node --conditions development test.js","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"gitHead":"472650a2378f771700e6faa2f88d5581ea3640bd","homepage":"https://github.com/syntax-tree/mdast-util-mdx-expression#readme","_id":"mdast-util-mdx-expression@1.1.0","_nodeVersion":"16.2.0","_npmVersion":"7.18.1","dist":{"shasum":"677d1175794d04951f96ceb3c8a698dbf2b43000","size":5197,"noattachment":false,"key":"/mdast-util-mdx-expression/-/mdast-util-mdx-expression-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mdast-util-mdx-expression/download/mdast-util-mdx-expression-1.1.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mdast-util-mdx-expression_1.1.0_1627475711365_0.2814961228829409"},"_hasShrinkwrap":false,"publish_time":1627475711515,"_cnpm_publish_time":1627475711515},"1.0.0":{"name":"mdast-util-mdx-expression","version":"1.0.0","description":"mdast extension to parse and serialize MDX (or MDX.js) expressions","license":"MIT","keywords":["unist","mdast","mdast-util","util","utility","markdown","markup","mdx","mdxjs","expression","extension"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/mdast-util-mdx-expression.git"},"bugs":{"url":"https://github.com/syntax-tree/mdast-util-mdx-expression/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","main":"index.js","types":"index.d.ts","dependencies":{"@types/estree-jsx":"^0.0.1","strip-indent":"^4.0.0"},"devDependencies":{"@types/acorn":"^4.0.5","@types/tape":"^4.0.0","acorn":"^8.0.0","c8":"^7.0.0","mdast-util-from-markdown":"^1.0.0","mdast-util-to-markdown":"^1.0.0","micromark-extension-mdx-expression":"^1.0.0","prettier":"^2.0.0","remark-cli":"^9.0.0","remark-preset-wooorm":"^8.0.0","rimraf":"^3.0.0","tape":"^5.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","unist-util-remove-position":"^4.0.0","xo":"^0.39.0"},"scripts":{"build":"rimraf \"*.d.ts\" && tsc && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node --conditions development test.js","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"gitHead":"87d02d72c7276f295d370d13c4eb978553b15ffa","homepage":"https://github.com/syntax-tree/mdast-util-mdx-expression#readme","_id":"mdast-util-mdx-expression@1.0.0","_nodeVersion":"16.2.0","_npmVersion":"7.18.1","dist":{"shasum":"588449f13c037762c59a5c3dd342c1c0d51f4092","size":5060,"noattachment":false,"key":"/mdast-util-mdx-expression/-/mdast-util-mdx-expression-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mdast-util-mdx-expression/download/mdast-util-mdx-expression-1.0.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mdast-util-mdx-expression_1.0.0_1624396580371_0.7755487800658116"},"_hasShrinkwrap":false,"publish_time":1624396580514,"_cnpm_publish_time":1624396580514},"0.1.1":{"name":"mdast-util-mdx-expression","version":"0.1.1","description":"mdast extension to parse and serialize MDX (or MDX.js) expressions","license":"MIT","keywords":["unist","mdast","mdast-util","util","utility","markdown","markup","mdx","mdxjs","expression","extension"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/mdast-util-mdx-expression.git"},"bugs":{"url":"https://github.com/syntax-tree/mdast-util-mdx-expression/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":{"strip-indent":"^3.0.0"},"devDependencies":{"acorn":"^8.0.0","mdast-util-from-markdown":"^0.8.0","mdast-util-to-markdown":"^0.5.0","micromark-extension-mdx-expression":"^0.1.0","nyc":"^15.0.0","prettier":"^2.0.0","remark-cli":"^9.0.0","remark-preset-wooorm":"^8.0.0","tape":"^5.0.0","unist-util-remove-position":"^3.0.0","xo":"^0.36.0"},"scripts":{"format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"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},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"da7bae0195be0bcc0c90e6d9c529423c0dca7fac","homepage":"https://github.com/syntax-tree/mdast-util-mdx-expression#readme","_id":"mdast-util-mdx-expression@0.1.1","_nodeVersion":"15.1.0","_npmVersion":"6.14.9","dist":{"shasum":"fa1a04a5ea6777b0e8db6c120adf03088595df95","size":4489,"noattachment":false,"key":"/mdast-util-mdx-expression/-/mdast-util-mdx-expression-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/mdast-util-mdx-expression/download/mdast-util-mdx-expression-0.1.1.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mdast-util-mdx-expression_0.1.1_1607527034706_0.36976539958885457"},"_hasShrinkwrap":false,"publish_time":1607527034799,"_cnpm_publish_time":1607527034799},"0.1.0":{"name":"mdast-util-mdx-expression","version":"0.1.0","description":"mdast extension to parse and serialize MDX or MDX.js expressions","license":"MIT","keywords":["unist","mdast","mdast-util","util","utility","markdown","markup","mdx","mdxjs","expression","extension"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/mdast-util-mdx-expression.git"},"bugs":{"url":"https://github.com/syntax-tree/mdast-util-mdx-expression/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":{"strip-indent":"^3.0.0"},"devDependencies":{"acorn":"^8.0.0","mdast-util-from-markdown":"^0.8.0","mdast-util-to-markdown":"^0.5.0","micromark-extension-mdx-expression":"^0.1.0","nyc":"^15.0.0","prettier":"^2.0.0","remark-cli":"^9.0.0","remark-preset-wooorm":"^8.0.0","tape":"^5.0.0","unist-util-remove-position":"^3.0.0","xo":"^0.35.0"},"scripts":{"format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"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},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"3b166abe02b3c05b3b196b26fc1a7344950c0f5d","homepage":"https://github.com/syntax-tree/mdast-util-mdx-expression#readme","_id":"mdast-util-mdx-expression@0.1.0","_nodeVersion":"15.1.0","_npmVersion":"6.14.9","dist":{"shasum":"254871afb8863afc9e1d435bab608b9c13328667","size":4487,"noattachment":false,"key":"/mdast-util-mdx-expression/-/mdast-util-mdx-expression-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mdast-util-mdx-expression/download/mdast-util-mdx-expression-0.1.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mdast-util-mdx-expression_0.1.0_1606756408886_0.6621246673424801"},"_hasShrinkwrap":false,"publish_time":1606756409042,"_cnpm_publish_time":1606756409042}},"readme":"# mdast-util-mdx-expression\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][] expressions (`{Math.PI}`).\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  * [`mdxExpressionFromMarkdown()`](#mdxexpressionfrommarkdown)\n  * [`mdxExpressionToMarkdown()`](#mdxexpressiontomarkdown)\n  * [`MdxFlowExpression`](#mdxflowexpression)\n  * [`MdxTextExpression`](#mdxtextexpression)\n  * [`MdxFlowExpressionHast`](#mdxflowexpressionhast)\n  * [`MdxTextExpressionHast`](#mdxtextexpressionhast)\n* [HTML](#html)\n* [Syntax](#syntax)\n* [Syntax tree](#syntax-tree)\n  * [Nodes](#nodes)\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 expression syntax\nin markdown to [mdast][].\nThese extensions plug into\n[`mdast-util-from-markdown`][mdast-util-from-markdown] (to support parsing\nexpressions in markdown into a syntax tree) and\n[`mdast-util-to-markdown`][mdast-util-to-markdown] (to support serializing\nexpressions 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-mdx-expression`][extension].\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-expression\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport {mdxExpressionFromMarkdown, mdxExpressionToMarkdown} from 'https://esm.sh/mdast-util-mdx-expression@2'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n<script type=\"module\">\n  import {mdxExpressionFromMarkdown, mdxExpressionToMarkdown} from 'https://esm.sh/mdast-util-mdx-expression@2?bundle'\n</script>\n```\n\n## Use\n\nSay our document `example.mdx` contains:\n\n```mdx\n{\n  a + 1\n}\n\nb {true}.\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 {mdxExpression} from 'micromark-extension-mdx-expression'\nimport {fromMarkdown} from 'mdast-util-from-markdown'\nimport {mdxExpressionFromMarkdown, mdxExpressionToMarkdown} from 'mdast-util-mdx-expression'\nimport {toMarkdown} from 'mdast-util-to-markdown'\n\nconst doc = await fs.readFile('example.mdx')\n\nconst tree = fromMarkdown(doc, {\n  extensions: [mdxExpression({acorn, addResult: true})],\n  mdastExtensions: [mdxExpressionFromMarkdown()]\n})\n\nconsole.log(tree)\n\nconst out = toMarkdown(tree, {extensions: [mdxExpressionToMarkdown()]})\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: 'mdxFlowExpression',\n      value: '\\na + 1\\n',\n      data: {\n        estree: {\n          type: 'Program',\n          body: [\n            {\n              type: 'ExpressionStatement',\n              expression: {\n                type: 'BinaryExpression',\n                left: {type: 'Identifier', name: 'a'},\n                operator: '+',\n                right: {type: 'Literal', value: 1, raw: '1'}\n              }\n            }\n          ],\n          sourceType: 'module'\n        }\n      }\n    },\n    {\n      type: 'paragraph',\n      children: [\n        {type: 'text', value: 'b '},\n        {\n          type: 'mdxTextExpression',\n          value: 'true',\n          data: {\n            estree: {\n              type: 'Program',\n              body: [\n                {\n                  type: 'ExpressionStatement',\n                  expression: {type: 'Literal', value: true, raw: 'true'}\n                }\n              ],\n              sourceType: 'module'\n            }\n          }\n        },\n        {type: 'text', value: '.'}\n      ]\n    }\n  ]\n}\n```\n\n```markdown\n{\n  a + 1\n}\n\nb {true}.\n```\n\n## API\n\nThis package exports the identifiers\n[`mdxExpressionFromMarkdown`][api-mdx-expression-from-markdown] and\n[`mdxExpressionToMarkdown`][api-mdx-expression-to-markdown].\nThere is no default export.\n\n### `mdxExpressionFromMarkdown()`\n\nCreate an extension for [`mdast-util-from-markdown`][mdast-util-from-markdown]\nto enable MDX expressions in markdown.\n\nWhen using the [micromark syntax extension][extension] with `addResult`, nodes\nwill have a `data.estree` field set to an ESTree [`Program`][program] node.\n\n###### Returns\n\nExtension for `mdast-util-from-markdown` to enable MDX expressions\n([`FromMarkdownExtension`][from-markdown-extension]).\n\n### `mdxExpressionToMarkdown()`\n\nCreate an extension for [`mdast-util-to-markdown`][mdast-util-to-markdown]\nto enable MDX expressions in markdown.\n\n###### Returns\n\nExtension for `mdast-util-to-markdown` to enable MDX expressions\n([`ToMarkdownExtension`][to-markdown-extension]).\n\n### `MdxFlowExpression`\n\nMDX expression node, occurring in flow (block) (TypeScript type).\n\n###### Type\n\n```ts\nimport type {Program} from 'estree-jsx'\nimport type {Data, Literal} from 'mdast'\n\ninterface MdxFlowExpression extends Literal {\n  type: 'mdxFlowExpression'\n  data?: MdxFlowExpressionData | undefined\n}\n\ninterface MdxFlowExpressionData extends Data {\n  estree?: Program | null | undefined\n}\n```\n\n### `MdxTextExpression`\n\nMDX expression node, occurring in text (block) (TypeScript type).\n\n###### Type\n\n```ts\nimport type {Program} from 'estree-jsx'\nimport type {Data, Literal} from 'mdast'\n\ninterface MdxTextExpression extends Literal {\n  type: 'mdxTextExpression'\n  data?: MdxTextExpressionData | undefined\n}\n\ninterface MdxTextExpressionData extends Data {\n  estree?: Program | null | undefined\n}\n```\n\n### `MdxFlowExpressionHast`\n\nSame as [`MdxFlowExpression`][api-mdx-flow-expression], but registered with\n`@types/hast` (TypeScript type).\n\n###### Type\n\n```ts\nimport type {Program} from 'estree-jsx'\nimport type {Data, Literal} from 'hast'\n\ninterface MdxFlowExpressionHast extends Literal {\n  type: 'mdxFlowExpression'\n  data?: MdxFlowExpressionData | undefined\n}\n\ninterface MdxFlowExpressionData extends Data {\n  estree?: Program | null | undefined\n}\n```\n\n### `MdxTextExpressionHast`\n\nSame as [`MdxTextExpression`][api-mdx-text-expression], but registered with\n`@types/hast` (TypeScript type).\n\n###### Type\n\n```ts\nimport type {Program} from 'estree-jsx'\nimport type {Data, Literal} from 'hast'\n\ninterface MdxTextExpressionHast extends Literal {\n  type: 'mdxTextExpression'\n  data?: MdxTextExpressionData | undefined\n}\n\ninterface MdxTextExpressionData extends Data {\n  estree?: Program | null | undefined\n}\n```\n\n## HTML\n\nMDX expressions have no representation in HTML.\nThough, when you are dealing with MDX, you will likely go *through* hast.\nYou can enable passing MDX expressions through to hast by configuring\n[`mdast-util-to-hast`][mdast-util-to-hast] with\n`passThrough: ['mdxFlowExpression', 'mdxTextExpression']`.\n\n## Syntax\n\nSee [Syntax in `micromark-extension-mdx-expression`][syntax].\n\n## Syntax tree\n\nThe following interfaces are added to **[mdast][]** by this utility.\n\n### Nodes\n\n#### `MdxFlowExpression`\n\n```idl\ninterface MdxFlowExpression <: Literal {\n  type: 'mdxFlowExpression'\n}\n```\n\n**MdxFlowExpression** (**[Literal][dfn-literal]**) represents a JavaScript\nexpression embedded in flow (block).\nIt can be used where **[flow][dfn-flow-content]** content is expected.\nIts content is represented by its `value` field.\n\nFor example, the following markdown:\n\n```markdown\n{\n  1 + 1\n}\n```\n\nYields:\n\n```js\n{type: 'mdxFlowExpression', value: '\\n1 + 1\\n'}\n```\n\n#### `MdxTextExpression`\n\n```idl\ninterface MdxTextExpression <: Literal {\n  type: 'mdxTextExpression\"\n}\n```\n\n**MdxTextExpression** (**[Literal][dfn-literal]**) represents a JavaScript\nexpression embedded in text (span, inline).\nIt can be used where **[phrasing][dfn-phrasing-content]** content is expected.\nIts content is represented by its `value` field.\n\nFor example, the following markdown:\n\n```markdown\na {1 + 1} b.\n```\n\nYields:\n\n```js\n{type: 'mdxTextExpression', value: '1 + 1'}\n```\n\n### Content model\n\n#### `FlowContent` (MDX expression)\n\n```idl\ntype FlowContentMdxExpression = MdxFlowExpression | FlowContent\n```\n\n#### `PhrasingContent` (MDX expression)\n\n```idl\ntype PhrasingContentMdxExpression = MdxTextExpression | PhrasingContent\n```\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports the additional types [`MdxFlowExpression`][api-mdx-flow-expression],\n[`MdxFlowExpressionHast`][api-mdx-flow-expression-hast],\n[`MdxTextExpression`][api-mdx-text-expression], and\n[`MdxTextExpressionHast`][api-mdx-text-expression-hast].\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 * @import {} from 'mdast-util-mdx-expression'\n * @import {Root} from 'mdast'\n */\n\nimport {visit} from 'unist-util-visit'\n\n/** @type {Root} */\nconst tree = getMdastNodeSomeHow()\n\nvisit(tree, function (node) {\n  // `node` can now be an expression node.\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,\n`mdast-util-mdx-expression@^2`, compatible 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-mdx`][remark-mdx]\n  — remark plugin to support MDX\n* [`syntax-tree/mdast-util-mdx`][mdast-util-mdx]\n  — mdast utility to support MDX\n* [`micromark/micromark-extension-mdx-expression`][extension]\n  — micromark extension to parse MDX expressions\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<!-- Definitions -->\n\n[build-badge]: https://github.com/syntax-tree/mdast-util-mdx-expression/workflows/main/badge.svg\n\n[build]: https://github.com/syntax-tree/mdast-util-mdx-expression/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/syntax-tree/mdast-util-mdx-expression.svg\n\n[coverage]: https://codecov.io/github/syntax-tree/mdast-util-mdx-expression\n\n[downloads-badge]: https://img.shields.io/npm/dm/mdast-util-mdx-expression.svg\n\n[downloads]: https://www.npmjs.com/package/mdast-util-mdx-expression\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-expression\n\n[size]: https://bundlejs.com/?q=mdast-util-mdx-expression\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[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[mdast-util-to-markdown]: https://github.com/syntax-tree/mdast-util-to-markdown\n\n[mdast-util-mdx]: https://github.com/syntax-tree/mdast-util-mdx\n\n[extension]: https://github.com/micromark/micromark-extension-mdx-expression\n\n[syntax]: https://github.com/micromark/micromark-extension-mdx-expression#syntax\n\n[program]: https://github.com/estree/estree/blob/master/es2015.md#programs\n\n[dfn-literal]: https://github.com/syntax-tree/mdast#literal\n\n[remark-mdx]: https://mdxjs.com/packages/remark-mdx/\n\n[mdx]: https://mdxjs.com\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-mdx-expression-from-markdown]: #mdxexpressionfrommarkdown\n\n[api-mdx-expression-to-markdown]: #mdxexpressiontomarkdown\n\n[api-mdx-flow-expression]: #mdxflowexpression\n\n[api-mdx-text-expression]: #mdxtextexpression\n\n[api-mdx-flow-expression-hast]: #mdxflowexpressionhast\n\n[api-mdx-text-expression-hast]: #mdxtextexpressionhast\n\n[dfn-flow-content]: #flowcontent-mdx-expression\n\n[dfn-phrasing-content]: #phrasingcontent-mdx-expression\n","_attachments":{},"homepage":"https://github.com/syntax-tree/mdast-util-mdx-expression#readme","bugs":{"url":"https://github.com/syntax-tree/mdast-util-mdx-expression/issues"},"license":"MIT"}