{"_id":"remark-unravel-mdx","_rev":"6-5791774cdcdd25f3b16300d016f62fbc","name":"remark-unravel-mdx","dist-tags":{"dev":"0.0.1","latest":"1.0.0"},"versions":{"0.0.0":{"name":"remark-unravel-mdx","version":"0.0.0","license":"MIT","_id":"remark-unravel-mdx@0.0.0","maintainers":[{"name":"etler","email":"tmetler@gmail.com"}],"dist":{"shasum":"fde16b538d48ba3cb8a10f4fdb5b0c0d5961675c","tarball":"https://registry.npmjs.org/remark-unravel-mdx/-/remark-unravel-mdx-0.0.0.tgz","fileCount":10,"integrity":"sha512-jsJsp2AxtvGY4CyR4iBe9MFSrmIw9X3BMk0xe/BfJw6zfCchCEsTEKuI0rCDSQZ2VHClk0nKkRdiHjJPORyNmw==","signatures":[{"sig":"MEUCIBAO4Znyb+PBHfALFKiXe5xUFCY3XlvcCZLgPi8IHpXhAiEAvBnsGb2X85OAud7P+/MWbNCwE8HwU2k58FDFPehqKrE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12020},"type":"module","types":"types/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./types/index.d.ts","import":"./dist/index.js"}},"scripts":{"fix":"scripts/lint --fix","lint":"scripts/lint","test":"tsc -p tests && vitest run --config tests/vitest.config.ts","build":"tsc","clean":"rm -rf dist/ types/","prepare":"husky && ts-patch install -s","prepublishOnly":"npm run clean && npm run build && npm run lint && npm run test"},"_npmUser":{"name":"etler","actor":{"name":"etler","type":"user","email":"tmetler@gmail.com"},"email":"tmetler@gmail.com"},"repository":{"url":"https://github.com/etler/node-simple-library-template.git","type":"git"},"description":"**[remark][]** plugin to unwrap paragraph elements that only contain [MDX][] JSX elements and paragraphs inside MDX components.","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2025 Timothy Etler\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","dependencies":{"unist-util-visit":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"husky":"~9.1.7","eslint":"~9.21.0","vitest":"^3.0.7","globals":"^16.0.0","prettier":"~3.5.2","ts-patch":"~3.3.0","@eslint/js":"^9.21.0","rehype-raw":"^7.0.0","typescript":"~5.7.3","@mdx-js/mdx":"^3.1.0","@types/node":"^24.0.6","lint-staged":"~15.4.3","rehype-stringify":"^10.0.1","typescript-eslint":"^8.25.0","eslint-plugin-tsdoc":"~0.4.0","rehype-mdx-elements":"^0.0.1","eslint-config-prettier":"^10.1.5","eslint-plugin-prettier":"~5.2.3","typescript-transform-paths":"~3.5.3"},"_npmOperationalInternal":{"tmp":"tmp/remark-unravel-mdx_0.0.0_1751098599427_0.06613733037784653","host":"s3://npm-registry-packages-npm-production"}},"0.0.1":{"name":"remark-unravel-mdx","version":"0.0.1","license":"MIT","_id":"remark-unravel-mdx@0.0.1","maintainers":[{"name":"etler","email":"tmetler@gmail.com"}],"dist":{"shasum":"8b16c90fecb58e9835891c78b348b2f100e353f6","tarball":"https://registry.npmjs.org/remark-unravel-mdx/-/remark-unravel-mdx-0.0.1.tgz","fileCount":10,"integrity":"sha512-AOm9HT3GVdJnrH161Z4OR/OsZe93JqG02SopCR7PxhsX65VN92sMFLlmTQ8CU7UWW2SPjUwZTdzbQEHH6dYO9w==","signatures":[{"sig":"MEQCIGZeD0oSWjLaAKLt6sEgSrQx+m3BCvy+0SyXjlgbcqSGAiBguwrXWKZKEeZFrHVHGUKtkhNsKAizQwgvvqAwAEq5yQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11875},"type":"module","types":"types/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./types/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc -w","fix":"npx eslint --fix","lint":"npx eslint","test":"tsc -p tests && vitest run --config tests/vitest.config.ts","build":"tsc","clean":"rm -rf dist/ types/","prepare":"husky && ts-patch install -s","prepublishOnly":"npm run clean && npm run build && npm run lint && npm run test"},"_npmUser":{"name":"etler","actor":{"name":"etler","type":"user","email":"tmetler@gmail.com"},"email":"tmetler@gmail.com"},"repository":{"url":"https://github.com/etler/node-simple-library-template.git","type":"git"},"description":"**[remark][]** plugin to unwrap paragraph elements that only contain [MDX][] JSX elements and paragraphs inside MDX components.","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2025 Timothy Etler\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","dependencies":{"unist-util-visit":"^5.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"husky":"~9.1.7","eslint":"~9.21.0","vitest":"^3.0.7","globals":"^16.0.0","prettier":"~3.5.2","ts-patch":"~3.3.0","@eslint/js":"^9.21.0","rehype-raw":"^7.0.0","typescript":"~5.7.3","@mdx-js/mdx":"^3.1.0","@types/node":"^24.0.6","lint-staged":"~15.4.3","rehype-stringify":"^10.0.1","typescript-eslint":"^8.25.0","eslint-plugin-tsdoc":"~0.4.0","rehype-mdx-elements":"^0.0.1","eslint-config-prettier":"^10.1.5","eslint-plugin-prettier":"~5.2.3","typescript-transform-paths":"~3.5.3"},"_npmOperationalInternal":{"tmp":"tmp/remark-unravel-mdx_0.0.1_1751400344487_0.1483700132102932","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"remark-unravel-mdx","version":"0.0.2","license":"MIT","_id":"remark-unravel-mdx@0.0.2","maintainers":[{"name":"etler","email":"tmetler@gmail.com"}],"dist":{"shasum":"d0ad1e8c9e16286ab07c87b611bd470f049f8bdb","tarball":"https://registry.npmjs.org/remark-unravel-mdx/-/remark-unravel-mdx-0.0.2.tgz","fileCount":10,"integrity":"sha512-0ujaF13fOcPxQjuW4JgaF9qf+I8aykt1fVJ0b2JVcQ8tnM1aflZGZXZb7CLEZEy3YMncpeR7ejvFGKibQp6D2g==","signatures":[{"sig":"MEUCIGJ2KdHXQd4NqMba6l1hiRhz9+5mJR1gb13T9wUbAyreAiEAu3ugcUGjpmJrbp4pPwW5tfBFrRLDZVjAV0gCpRoDtF8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11865},"type":"module","types":"types/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./types/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc -w","fix":"npx eslint --fix","lint":"npx eslint","test":"tsc -p tests && vitest run --config tests/vitest.config.ts","build":"tsc","clean":"rm -rf dist/ types/","prepare":"husky && ts-patch install -s","prepublishOnly":"npm run clean && npm run build && npm run lint && npm run test"},"_npmUser":{"name":"etler","email":"tmetler@gmail.com"},"repository":{"url":"https://github.com/etler/remark-unravel-mdx.git","type":"git"},"description":"**[remark][]** plugin to unwrap paragraph elements that only contain [MDX][] JSX elements and paragraphs inside MDX components.","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2025 Timothy Etler\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","dependencies":{"unist-util-visit":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"husky":"~9.1.7","eslint":"~9.21.0","vitest":"^3.0.7","globals":"^16.0.0","prettier":"~3.5.2","ts-patch":"~3.3.0","@eslint/js":"^9.21.0","rehype-raw":"^7.0.0","typescript":"~5.7.3","@mdx-js/mdx":"^3.1.0","@types/node":"^24.0.6","lint-staged":"~15.4.3","rehype-stringify":"^10.0.1","typescript-eslint":"^8.25.0","eslint-plugin-tsdoc":"~0.4.0","rehype-mdx-elements":"^0.0.1","eslint-config-prettier":"^10.1.5","eslint-plugin-prettier":"~5.2.3","typescript-transform-paths":"~3.5.3"},"_npmOperationalInternal":{"tmp":"tmp/remark-unravel-mdx_0.0.2_1755542478660_0.45523713066249893","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"remark-unravel-mdx","version":"0.0.3","license":"MIT","_id":"remark-unravel-mdx@0.0.3","maintainers":[{"name":"etler","email":"tmetler@gmail.com"}],"dist":{"shasum":"c7885a7275db7d169a0c55cc1835019ed560c320","tarball":"https://registry.npmjs.org/remark-unravel-mdx/-/remark-unravel-mdx-0.0.3.tgz","fileCount":10,"integrity":"sha512-QjpXPbZCOfD0Wwpq5mWVzHXa2Z6QUi/3JBTd9l52WLDIi3c06m7xv08BucuZJwN/e3CE3jk0wszwNd/9ssx7bA==","signatures":[{"sig":"MEUCIQCxNhJs0orIVYqJ3vBxlpnQS3ekJcn7CcqajqLJNstYhQIgbzas2kpNTd6B0qZPWQLod5XivonWrs3uVVYOzT2aR0M=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12337},"type":"module","types":"types/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./types/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc -w","fix":"npx eslint --fix","lint":"npx eslint","test":"tsc -p tests && vitest run --config tests/vitest.config.ts","build":"tsc","clean":"rm -rf dist/ types/","prepare":"husky && ts-patch install -s","prepublishOnly":"npm run clean && npm run build && npm run lint && npm run test"},"_npmUser":{"name":"etler","email":"tmetler@gmail.com"},"repository":{"url":"https://github.com/etler/remark-unravel-mdx.git","type":"git"},"description":"**[remark][]** plugin to unwrap paragraph elements that only contain [MDX][] JSX elements and paragraphs inside MDX components.","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2025 Timothy Etler\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","dependencies":{"unist-util-visit":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"husky":"~9.1.7","eslint":"~9.21.0","vitest":"^3.0.7","globals":"^16.0.0","prettier":"~3.5.2","ts-patch":"~3.3.0","@eslint/js":"^9.21.0","rehype-raw":"^7.0.0","typescript":"~5.7.3","@mdx-js/mdx":"^3.1.0","@types/node":"^24.0.6","lint-staged":"~15.4.3","rehype-stringify":"^10.0.1","typescript-eslint":"^8.25.0","eslint-plugin-tsdoc":"~0.4.0","rehype-mdx-elements":"^0.0.1","eslint-config-prettier":"^10.1.5","eslint-plugin-prettier":"~5.2.3","typescript-transform-paths":"~3.5.3"},"_npmOperationalInternal":{"tmp":"tmp/remark-unravel-mdx_0.0.3_1755571679507_0.9289809299982579","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"remark-unravel-mdx","version":"0.1.0","license":"MIT","_id":"remark-unravel-mdx@0.1.0","maintainers":[{"name":"etler","email":"tmetler@gmail.com"}],"dist":{"shasum":"b8534feed1a8398211c2f3c5cc8c62e47a878589","tarball":"https://registry.npmjs.org/remark-unravel-mdx/-/remark-unravel-mdx-0.1.0.tgz","fileCount":10,"integrity":"sha512-Ot2/zETQiLRkbOOjYKEOEC+kppYJFBtqHW6vxzaRbH1yw/LGeaRA1pHFK9VzKhV+EesszLBli8/VI5G4BoCjrQ==","signatures":[{"sig":"MEYCIQDSTwOYo1MWIEEl1/5bo56mXrrLzOYSbKvY6pm8qIn63wIhAMiYjpUXBqcSrJo82rnSrJrn7aC0Reqo+Y+BVmy2AKap","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12344},"type":"module","types":"types/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./types/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc -w","fix":"npx eslint --fix","lint":"npx eslint","test":"tsc -p tests && vitest run --config tests/vitest.config.ts","build":"tsc","clean":"rm -rf dist/ types/","prepare":"husky && ts-patch install -s","prepublishOnly":"npm run clean && npm run build && npm run lint && npm run test"},"_npmUser":{"name":"etler","email":"tmetler@gmail.com"},"repository":{"url":"https://github.com/etler/remark-unravel-mdx.git","type":"git"},"description":"**[remark][]** plugin to unwrap paragraph elements that only contain [MDX][] JSX elements and paragraphs inside MDX components.","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2025 Timothy Etler\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","dependencies":{"unist-util-visit":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"husky":"~9.1.7","eslint":"~9.21.0","vitest":"^3.0.7","globals":"^16.0.0","prettier":"~3.5.2","ts-patch":"~3.3.0","@eslint/js":"^9.21.0","rehype-raw":"^7.0.0","typescript":"~5.7.3","@mdx-js/mdx":"^3.1.0","@types/node":"^24.0.6","lint-staged":"~15.4.3","rehype-stringify":"^10.0.1","typescript-eslint":"^8.25.0","eslint-plugin-tsdoc":"~0.4.0","rehype-mdx-elements":"^0.1.0","eslint-config-prettier":"^10.1.5","eslint-plugin-prettier":"~5.2.3","typescript-transform-paths":"~3.5.3"},"_npmOperationalInternal":{"tmp":"tmp/remark-unravel-mdx_0.1.0_1755621846069_0.42089719941700277","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"remark-unravel-mdx","version":"1.0.0","repository":{"type":"git","url":"https://github.com/etler/remark-unravel-mdx.git"},"license":"MIT","type":"module","module":"dist/index.js","types":"types/index.d.ts","exports":{".":{"types":"./types/index.d.ts","import":"./dist/index.js"}},"scripts":{"prepublishOnly":"npm run clean && npm run build && npm run lint && npm run test","prepare":"husky && ts-patch install -s","clean":"rm -rf dist/ types/","build":"tsc","dev":"tsc -w","lint":"npx eslint","test":"tsc -p tests && vitest run --config tests/vitest.config.ts","fix":"npx eslint --fix"},"dependencies":{"unist-util-visit":"^5.0.0"},"devDependencies":{"@eslint/js":"^9.21.0","@mdx-js/mdx":"^3.1.0","@types/node":"^24.0.6","eslint":"~9.21.0","eslint-config-prettier":"^10.1.5","eslint-plugin-prettier":"~5.2.3","eslint-plugin-tsdoc":"~0.4.0","globals":"^16.0.0","husky":"~9.1.7","lint-staged":"~15.4.3","prettier":"~3.5.2","rehype-mdx-elements":"^1.0.0","rehype-raw":"^7.0.0","rehype-stringify":"^10.0.1","ts-patch":"~3.3.0","typescript":"~5.7.3","typescript-eslint":"^8.25.0","typescript-transform-paths":"~3.5.3","vitest":"^3.0.7"},"description":"**[remark][]** plugin to unwrap paragraph elements that only contain [MDX][] JSX elements and paragraphs inside MDX components.","licenseText":"MIT License\n\nCopyright (c) 2025 Timothy Etler\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"remark-unravel-mdx@1.0.0","dist":{"shasum":"3453aee1ee1321c6bd33eb8fe6635c0276948588","integrity":"sha512-LYFUXMOsd9C66296+0Pc5r4leIDOsK75BHcUkAwr0T2iQOhIKKbZoZ+IsDg52sLmV62MAWDBEkHwzDqte6PNkg==","tarball":"https://registry.npmjs.org/remark-unravel-mdx/-/remark-unravel-mdx-1.0.0.tgz","fileCount":10,"unpackedSize":12344,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCb1474HUBly0telffg6JqkLrqnHlVn+NuYyPQvj6CrBAIgfi78tqCH9DMO2MvSGUWSwB1E3SIXWoozkWWWKg9SiMI="}]},"_npmUser":{"name":"etler","email":"tmetler@gmail.com"},"directories":{},"maintainers":[{"name":"etler","email":"tmetler@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/remark-unravel-mdx_1.0.0_1755622440950_0.38065021300177637"},"_hasShrinkwrap":false}},"time":{"created":"2025-06-28T08:16:39.426Z","modified":"2025-08-19T16:54:01.335Z","0.0.0":"2025-06-28T08:16:39.603Z","0.0.1":"2025-07-01T20:05:44.659Z","0.0.2":"2025-08-18T18:41:18.890Z","0.0.3":"2025-08-19T02:47:59.720Z","0.1.0":"2025-08-19T16:44:06.252Z","1.0.0":"2025-08-19T16:54:01.138Z"},"license":"MIT","repository":{"type":"git","url":"https://github.com/etler/remark-unravel-mdx.git"},"description":"**[remark][]** plugin to unwrap paragraph elements that only contain [MDX][] JSX elements and paragraphs inside MDX components.","maintainers":[{"name":"etler","email":"tmetler@gmail.com"}],"readme":"# remark-unravel-mdx\n\n**[remark][]** plugin to unwrap paragraph elements that only contain [MDX][] JSX elements and paragraphs inside MDX components.\n\n## Contents\n\n- [What is this?](#what-is-this)\n- [When should I use this?](#when-should-i-use-this)\n- [Install](#install)\n- [Use](#use)\n- [API](#api)\n  - [`remarkUnravelMdx()`](#remarkUnravelMdx)\n- [Examples](#examples)\n- [Syntax tree](#syntax-tree)\n- [Compatibility](#compatibility)\n- [Security](#security)\n- [Related](#related)\n- [Contribute](#contribute)\n- [License](#license)\n\n## What is this?\n\nThis package is a [unified][] ([remark][]) plugin that removes paragraph wrappers in two scenarios:\n\n1. **Paragraphs containing only JSX elements**: When a paragraph contains only MDX JSX elements (and whitespace), the paragraph wrapper is removed.\n2. **Single paragraph inside MDX components**: When MDX components have exactly one paragraph child, that paragraph is unwrapped to prevent styling conflicts. Components with multiple children preserve their paragraph structure for safety.\n\n## When should I use this?\n\nThis plugin is useful when you're using MDX and want to prevent unnecessary paragraph wrapping. This is particularly important when:\n\n- Your JSX components are block-level elements that shouldn't be inside paragraphs\n- You want cleaner HTML output without unnecessary `<p>` wrapper elements\n- You're building a content pipeline where paragraph wrapping interferes with your component styling\n- You want content inside JSX components to render without a paragraph wrapper for better styling control\n\nRegular text content and mixed content paragraphs remain unchanged.\n\n## Install\n\nThis package is [ESM only][esm].\n\n```sh\nnpm install remark-unravel-mdx\n```\n\n```sh\nyarn add remark-unravel-mdx\n```\n\n```html\n<script type=\"module\">\n  import {remarkUnravelMdx} from 'https://esm.sh/remark-unravel-mdx?bundle'\n</script>\n```\n\n## Use\n\n`example.mdx`:\n\n```md\nThis is a regular paragraph.\n\nThis paragraph has an <InlineComponent>inline component</InlineComponent> inside it.\n\n<CustomComponent>\n  This content will be unwrapped from its paragraph.\n</CustomComponent>\n```\n\n`example.ts`:\n\n```js\nimport {readFileSync} from 'node:fs'\nimport {remark} from 'remark'\nimport remarkMdx from 'remark-mdx'\nimport {remarkUnravelMdx} from 'remark-unravel-mdx'\nimport remarkRehype from 'remark-rehype'\nimport {rehypeMdxElements} from \"rehype-mdx-elements\";\nimport rehypeStringify from 'rehype-stringify'\n\nconst file = readFileSync('example.mdx')\n\nconst result = await remark()\n  .use(remarkMdx)\n  .use(remarkUnravelMdx)\n  .use(remarkRehype, {\n    passThrough: [\"mdxJsxFlowElement\", \"mdxJsxTextElement\"],\n  })\n  .use(rehypeMdxElements)\n  .use(rehypeStringify)\n  .process(file)\n\nconsole.log(String(result))\n\n```\n\nRunning `example.ts` produces an HTML string with the following content:\n\n```html\n<p>This is a regular paragraph.</p>\n<CustomComponent>This component is on one line.</CustomComponent>\n<CustomComponent>This component spans multiple lines</CustomComponent>\n```\n\nIf `remarkUnravelMdx` is not used it will produce the following content with paragraph wrappers:\n\n```html\n<p>This is a regular paragraph.</p>\n<p><CustomComponent>This component is on one line.</CustomComponent></p>\n<CustomComponent><p>This component spans multiple lines</p></CustomComponent>\n```\n\n## API\n\n### `remarkUnravelMdx()`\n\nRemove paragraph wrappers around MDX JSX elements and inside MDX components.\n\n###### Returns\n\nTransform ([`Transformer`][unified-transformer]).\n\n## Syntax tree\n\nThis plugin modifies the [mdast][] syntax tree by:\n\n1. Finding paragraph nodes that contain only MDX JSX text elements and whitespace\n2. Replacing those paragraph nodes with their children directly\n3. Finding single paragraphs that are the sole child of MDX JSX elements\n4. Unwrapping those single paragraphs by replacing them with their children\n5. Preserving the original position and structure of all elements\n\nFor example, this paragraph node:\n\n```js\n{\n  type: 'paragraph',\n  children: [\n    {type: 'mdxJsxTextElement', name: 'MyComponent', children: []}\n  ]\n}\n```\n\nBecomes:\n\n```js\n{type: 'mdxJsxTextElement', name: 'MyComponent', children: []}\n```\n\n## Related\n\n- [`remark-mdx`][remark-mdx] — adds support for MDX syntax parsing\n- [`remark-parse`][remark-parse] — parses markdown to remark AST\n- [`remark-rehype`][remark-rehype] — transform remark to rehype\n\n## License\n\n[MIT][license] © [Tim Etler][author]\n\n[license]: LICENSE.md\n[author]: https://github.com/etler\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n[unified]: https://github.com/unifiedjs/unified\n[unified-transformer]: https://github.com/unifiedjs/unified#transformer\n[remark]: https://github.com/remarkjs/remark\n[remark-mdx]: https://github.com/mdx-js/mdx/tree/main/packages/remark-mdx\n[remark-rehype]: https://github.com/remarkjs/remark-rehype\n[remark-parse]: https://github.com/remarkjs/remark/tree/main/packages/remark-parse\n[mdast]: https://github.com/syntax-tree/mdast\n[mdx]: https://mdxjs.com\n","readmeFilename":"README.md"}