summaryrefslogtreecommitdiff
path: root/packages/integrations/mdx/test (follow)
AgeCommit message (Collapse)AuthorFilesLines
2025-03-27fix(deps): update astro dependencies (#13498)Gravatar renovate[bot] 1-1/+1
* fix(deps): update astro dependencies * fix types shenanigans --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2025-03-12Add `experimental.headingIdCompat` flag (#13352)Gravatar Chris Swithinbank 2-0/+55
* Add `experimental.headingIdCompat` option schema & types * Markdown and MDX support * Markdoc support * Add changeset * Fix missing argument in Markdoc integration * Improve JSDoc comment Co-authored-by: Matt Kane <m@mk.gg> * Refactor to avoid global context object in Markdoc * Minor changeset tweak * Make `rehypeHeadingIds()` argument optional for backwards compatibility * Add doc comment to `rehypeHeadingIds()` * Document rehype plugin usage in changeset --------- Co-authored-by: Matt Kane <m@mk.gg>
2025-03-04fix(deps): update all non-major dependencies (#13346)Gravatar renovate[bot] 1-1/+1
* fix(deps): update all non-major dependencies * chore: fix type issue --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2025-01-13fix(deps): update all non-major dependencies (#12579)Gravatar renovate[bot] 1-1/+1
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-10Add inline mdx component test (#12965)Gravatar Bjorn Lu 2-0/+10
2025-01-08fix: conditionally import image style (#12925)Gravatar Matt Kane 5-7/+26
* fix: conditionally import image style * Use wrapper component for conditional style import * changeset * Add tests * Fix tests * Update markdoc tests * Lint
2025-01-07fix(mdx): don't import image component when no images are used (#12921)Gravatar Matt Kane 2-5/+5
* fix(mdx): don't import image component when no images are used * Fix test * Fix test
2024-11-27Merge branch 'main' into nextGravatar Emanuele Stoppa 1-1/+1
2024-11-27fix(deps): update all non-major dependencies (#12410)Gravatar renovate[bot] 1-1/+1
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-11-15feat: experimental responsive images (#12377)Gravatar Matt Kane 2-8/+8
* chore: changeset * feat: add experimental responsive images config option (#12378) * feat: add experimental responsive images config option * Apply suggestions from code review Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update config types * Move config into `images` * Move jsdocs --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * feat: add responsive image component (#12381) * feat: add experimental responsive images config option * Apply suggestions from code review Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update config types * Move config into `images` * Move jsdocs * wip: responsive image component * Improve srcset logic * Improve fixture * Lock * Update styling * Fix style prop handling * Update test (there's an extra style for images now) * Safely access the src props * Remove unused export * Handle priority images * Consolidate styles * Update tests * Comment * Refactor srcset * Avoid dupes of original image * Calculate missing dimensions * Bugfixes * Add tests * Fix test * Correct order * Lint * Fix fspath * Update test * Fix test * Conditional component per flag * Fix class concatenation * Remove logger * Rename helper * Add comments * Format * Fix markdoc tests * Add test for style tag --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * feat: add crop support to image services (#12414) * wip: add crop support to image services * Add tests * Strip crop attributes * Don't upscale * Format * Get build working properly * Changes from review * Fix jsdoc * feat: add responsive support to picture component (#12423) * feat: add responsive support to picture component * Add picture tests * Fix test * Implement own define vars * Share logic * Prevent extra astro-* class * Use dataset scoping * Revert unit test * Revert "Fix test" This reverts commit f9ec6e2938ff291037234d56f8eec76a93be0c0d. * Changes from review * docs: add docs for responsive images (#12429) * docs: add responsive images flag docs * docs: adds jsdoc for image components * chore: updates from review * Fix jsdoc * Changes from review * Add breakpoints option * typo --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-10-24Unset charset=utf-8 content-type for md/mdx pages (#12231)Gravatar Bjorn Lu 5-0/+67
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-10-15Merge branch 'main' into nextGravatar bluwy 1-1/+1
2024-10-15fix(deps): update all non-major dependencies (#12218)Gravatar renovate[bot] 1-1/+1
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-10-07Merge branch 'main' into nextGravatar Princesseuh 1-1/+1
2024-10-07fix(deps): update all non-major dependencies (#12140)Gravatar renovate[bot] 1-1/+1
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-04Implement legacy collections using glob (#11976)Gravatar Matt Kane 1-0/+5
* feat: support pattern arrays with glob * wip * feat: emulate legacy content collections * Fixes * Lint * Correctly handle legacy data * Fix tests * Switch flag handling * Fix warnings * Add layout warning * Update fixtures * More tests! * Handle empty md files * Lockfile * Dedupe name * Handle data ID unslug * Fix e2e * Clean build * Clean builds in tests * Test fixes * Fix test * Fix typegen * Fix tests * Fixture updates * Test updates * Update changeset * Test * Remove wait in test * Handle race condition * Lock * chore: changes from review * Handle folders without config * lint * Fix test * Update wording for auto-collections * Delete legacyId * Sort another fixture * Rename flag to `legacy.collections` * Apply suggestions from code review Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Changes from review * Apply suggestions from code review Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * lockfile * lock --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-10-01Merge branch 'main' into nextGravatar bluwy 1-1/+1
2024-09-26fix(deps): update all non-major dependencies (#12003)feat/action-on-resultGravatar renovate[bot] 1-1/+1
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-09-19chore: remove outdate config from testGravatar Matt Kane 1-1/+0
2024-09-18Merge branch 'main' into nextGravatar Matt Kane 8-7/+26
2024-09-18[ci] formatGravatar Matt Kane 1-1/+1
2024-09-18fix: correctly handle head propagation in content layer deferred rendering ↵Gravatar Matt Kane 8-7/+26
(#12014) * chore: run MDX tests against content layer * Handle head propagation in deferred rendering * Add changeset * Update test
2024-09-13Merge branch 'main' into nextGravatar Matthew Phillips 2-6/+45
2024-09-12Handle MDX optimize for root hast node (#11975)Gravatar Bjorn Lu 2-6/+45
2024-09-11feat(next): reference astro/client from astro/config (#11925)Gravatar Florian Lefebvre 1-1/+1
2024-09-03feat(next): better tsconfig (#11859)Gravatar Florian Lefebvre 1-1/+3
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-08-28Make directRenderScript the default (#11791)Gravatar Bjorn Lu 1-3/+3
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-08-19Merge branch 'main' into nextGravatar Princesseuh 1-1/+1
2024-08-19fix(deps): update all non-major dependencies (#11765)Gravatar renovate[bot] 1-1/+1
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-13Fix attribute rendering for boolean values (take 2) (#11660)Gravatar Bjorn Lu 1-2/+2
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Armand Philippot <59021693+ArmandPhilippot@users.noreply.github.com>
2024-08-08update formatter config (#11640)Gravatar Darius 12-34/+34
* update formatter config * format --------- Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-08-07Improve regex performance (#11635)Gravatar Bjorn Lu 1-1/+1
2024-07-31fix(deps): update all non-major dependencies (#11565)Gravatar renovate[bot] 1-1/+1
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-17fix(deps): update all non-major dependencies (#11426)Gravatar renovate[bot] 1-2/+2
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-07-03Revert "Fix attribute rendering for boolean values (#11369)" (#11408)Gravatar Matthew Phillips 1-2/+2
* Revert "Fix attribute rendering for boolean values (#11369)" This reverts commit e6de11f4a941e29123da3714e5b8f17d25744f0f. * Add a changeset
2024-07-01fix(deps): update all non-major dependencies (#11383)Gravatar renovate[bot] 1-1/+1
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-07-01Fix attribute rendering for boolean values (#11369)Gravatar Bjorn Lu 1-2/+2
2024-05-30fix(deps): update all non-major dependencies (#11151)Gravatar renovate[bot] 1-1/+1
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-05-21fix(renderer): omitting internal symbol from mdx props (#10813)Gravatar Xetera 7-0/+83
2024-05-13fix(deps): update all non-major dependencies (#11015)Gravatar renovate[bot] 1-1/+1
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-05-09chore(deps): update all non-major dependencies (#10958)Gravatar renovate[bot] 5-9/+9
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-05-08MDX integration v3 (#10935)Gravatar Bjorn Lu 3-1/+114
* fix(mdx): convert remark-images-to-component plugin to a rehype plugin (#10697) * Remove fs read for MDX transform (#10866) * Tag MDX component for faster checks when rendering (#10864) * Use unified plugin only for MDX transform (#10869) * Only traverse children and handle mdxJsxTextElement when optimizing (#10885) * Rename to `optimize.ignoreComponentNames` in MDX (#10884) * Allow remark/rehype plugins added after mdx to work (#10877) * Improve MDX optimize with sibling nodes (#10887) * Improve types in rehype-optimize-static.ts * Rename `ignoreComponentNames` to `ignoreElementNames` I think this better reflects what it's actually doing * Simplify plain MDX nodes in optimize option (#10934) * Format code * Minimize diff changes * Update .changeset/slimy-cobras-end.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> --------- Co-authored-by: Armand Philippot <59021693+ArmandPhilippot@users.noreply.github.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-05-08Improve content collection styles and scripts build perf (#10959)Gravatar Bjorn Lu 1-1/+1
* Improve content collection styles and scripts build perf * Update test It was actually a bug. There was an empty module script injected. * Skip test * Fix test not matching non-ccc behaviour * Workaround bug to make test pass * Update .changeset/grumpy-pillows-develop.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-04-17[ci] formatGravatar Emanuele Stoppa 5-7/+7
2024-04-16fix: MDX cannot find relative image path without leading ./ (#10754)Gravatar Rishi Raj Jain 4-1/+11
Co-authored-by: Oliver Speir <115520730+OliverSpeir@users.noreply.github.com>
2024-03-13Revert "[ci] format" (#10417)Gravatar Emanuele Stoppa 5-7/+7
* Revert "[ci] format" This reverts commit 1863727215e87e20c6f5aebe5f9ee0f2783bc788. * pin dependency * update lock
2024-03-13[ci] formatGravatar Houston (Bot) 5-7/+7
2024-03-13[ci] update lockfile (#10234)Gravatar Houston (Bot) 2-3/+3
Co-authored-by: matthewp <matthewp@users.noreply.github.com> Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-02-22chore: import sorting for test folder and e2e folder (#10190)Gravatar Emanuele Stoppa 3-3/+3
2024-02-21chore: use biome to sort imports - only test files (#10180)Gravatar Emanuele Stoppa 23-34/+34
* chore: use biome to sort imports * do the sorting * Update package.json Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> --------- Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>