@astrojs/mdx 0.8.2 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/.turbo/turbo-build.log +5 -5
  2. package/CHANGELOG.md +30 -0
  3. package/README.md +20 -3
  4. package/dist/astro-data-utils.js +37 -0
  5. package/dist/index.js +28 -24
  6. package/dist/remark-shiki.d.ts +3 -0
  7. package/dist/remark-shiki.js +58 -0
  8. package/package.json +4 -4
  9. package/src/astro-data-utils.ts +38 -0
  10. package/src/index.ts +30 -25
  11. package/src/remark-shiki.ts +85 -0
  12. package/test/fixtures/mdx-component/src/pages/glob.astro +11 -0
  13. package/test/fixtures/mdx-frontmatter/src/layouts/Base.astro +7 -1
  14. package/test/fixtures/mdx-frontmatter-injection/node_modules/.bin/astro +2 -2
  15. package/test/fixtures/mdx-frontmatter-injection/src/layouts/Base.astro +17 -0
  16. package/test/fixtures/mdx-frontmatter-injection/src/pages/page-1.mdx +4 -0
  17. package/test/fixtures/mdx-frontmatter-injection/src/pages/page-2.mdx +4 -0
  18. package/test/fixtures/mdx-namespace/astro.config.mjs +6 -0
  19. package/test/fixtures/mdx-namespace/node_modules/.bin/astro +17 -0
  20. package/test/fixtures/mdx-namespace/package.json +8 -0
  21. package/test/fixtures/mdx-namespace/src/components/Component.jsx +6 -0
  22. package/test/fixtures/mdx-namespace/src/pages/object.mdx +3 -0
  23. package/test/fixtures/mdx-namespace/src/pages/star.mdx +3 -0
  24. package/test/fixtures/mdx-page/node_modules/.bin/astro +2 -2
  25. package/test/fixtures/mdx-plus-react/node_modules/.bin/astro +2 -2
  26. package/test/mdx-component.test.js +54 -2
  27. package/test/mdx-frontmatter-injection.test.js +12 -0
  28. package/test/mdx-frontmatter.test.js +14 -0
  29. package/test/mdx-namespace.test.js +83 -0
  30. package/test/mdx-syntax-highlighting.test.js +26 -2
  31. package/test/fixtures/mdx-component/dist/index.html +0 -3
  32. package/test/fixtures/mdx-component/node_modules/.vite/deps_temp/package.json +0 -1
  33. package/test/fixtures/mdx-custom-frontmatter-name/dist/glob.json +0 -1
  34. package/test/fixtures/mdx-custom-frontmatter-name/dist/index.html +0 -1
  35. package/test/fixtures/mdx-custom-frontmatter-name/node_modules/.vite/deps_temp/package.json +0 -1
  36. package/test/fixtures/mdx-frontmatter/dist/glob.json +0 -1
  37. package/test/fixtures/mdx-frontmatter/dist/index.html +0 -17
  38. package/test/fixtures/mdx-frontmatter/dist/with-headings/index.html +0 -18
  39. package/test/fixtures/mdx-frontmatter/node_modules/.vite/deps_temp/package.json +0 -1
  40. package/test/fixtures/mdx-get-headings/dist/pages.json +0 -1
  41. package/test/fixtures/mdx-get-headings/dist/test/index.html +0 -5
  42. package/test/fixtures/mdx-get-headings/dist/test-with-jsx-expressions/index.html +0 -3
  43. package/test/fixtures/mdx-get-headings/node_modules/.vite/deps_temp/package.json +0 -1
  44. package/test/fixtures/mdx-get-static-paths/dist/one/index.html +0 -13
  45. package/test/fixtures/mdx-page/dist/index.html +0 -1
  46. package/test/fixtures/mdx-page/node_modules/.vite/deps_temp/package.json +0 -1
  47. package/test/fixtures/mdx-plus-react/dist/client.0d691cb3.js +0 -32
  48. package/test/fixtures/mdx-plus-react/dist/index.html +0 -8
  49. package/test/fixtures/mdx-plus-react/node_modules/.vite/deps_temp/@astrojs_react_client__js.js +0 -95
  50. package/test/fixtures/mdx-plus-react/node_modules/.vite/deps_temp/@astrojs_react_client__js.js.map +0 -7
  51. package/test/fixtures/mdx-plus-react/node_modules/.vite/deps_temp/_metadata.json +0 -47
  52. package/test/fixtures/mdx-plus-react/node_modules/.vite/deps_temp/chunk-CDYRCHBX.js +0 -7480
  53. package/test/fixtures/mdx-plus-react/node_modules/.vite/deps_temp/chunk-CDYRCHBX.js.map +0 -7
  54. package/test/fixtures/mdx-plus-react/node_modules/.vite/deps_temp/chunk-RRXZ3AUC.js +0 -326
  55. package/test/fixtures/mdx-plus-react/node_modules/.vite/deps_temp/chunk-RRXZ3AUC.js.map +0 -7
  56. package/test/fixtures/mdx-plus-react/node_modules/.vite/deps_temp/chunk-TWLJ45QX.js +0 -27
  57. package/test/fixtures/mdx-plus-react/node_modules/.vite/deps_temp/chunk-TWLJ45QX.js.map +0 -7
  58. package/test/fixtures/mdx-plus-react/node_modules/.vite/deps_temp/package.json +0 -1
  59. package/test/fixtures/mdx-plus-react/node_modules/.vite/deps_temp/react-dom.js +0 -12
  60. package/test/fixtures/mdx-plus-react/node_modules/.vite/deps_temp/react-dom.js.map +0 -7
  61. package/test/fixtures/mdx-plus-react/node_modules/.vite/deps_temp/react.js +0 -11
  62. package/test/fixtures/mdx-plus-react/node_modules/.vite/deps_temp/react.js.map +0 -7
  63. package/test/fixtures/mdx-plus-react/node_modules/.vite/deps_temp/react_jsx-dev-runtime.js +0 -41
  64. package/test/fixtures/mdx-plus-react/node_modules/.vite/deps_temp/react_jsx-dev-runtime.js.map +0 -7
  65. package/test/fixtures/mdx-plus-react/node_modules/.vite/deps_temp/react_jsx-runtime.js +0 -62
  66. package/test/fixtures/mdx-plus-react/node_modules/.vite/deps_temp/react_jsx-runtime.js.map +0 -7
  67. package/test/fixtures/mdx-rehype-plugins/dist/reading-time.json +0 -1
  68. package/test/fixtures/mdx-rehype-plugins/dist/space-ipsum/index.html +0 -13
  69. package/test/fixtures/mdx-rehype-plugins/node_modules/.vite/deps_temp/package.json +0 -1
  70. package/test/fixtures/mdx-remark-plugins/dist/with-gfm/index.html +0 -2
  71. package/test/fixtures/mdx-remark-plugins/dist/with-toc/index.html +0 -22
  72. package/test/fixtures/mdx-remark-plugins/node_modules/.vite/deps_temp/package.json +0 -1
  73. package/test/fixtures/mdx-syntax-hightlighting/dist/index.html +0 -6
  74. package/test/fixtures/mdx-syntax-hightlighting/node_modules/.vite/deps_temp/package.json +0 -1
  75. package/test/fixtures/mdx-url-export/dist/pages.json +0 -1
  76. package/test/fixtures/mdx-url-export/dist/test-1/index.html +0 -1
  77. package/test/fixtures/mdx-url-export/dist/test-2/index.html +0 -1
  78. package/test/fixtures/mdx-url-export/dist/with-url-override/index.html +0 -1
  79. package/test/fixtures/mdx-url-export/node_modules/.vite/deps_temp/package.json +0 -1
  80. package/test/fixtures/node_modules/.vite/deps_temp/package.json +0 -1

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the package file manually.