You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: add remark plugin to collect image URLs from MDX content
Extracts all image sources (markdown, HTML, JSX, HAST) into a
file.data.images array for downstream export. Runs after
remark-resolve-images so URLs are already resolved.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* feat: wire image collection into build pipeline
Register remarkCollectImages after remarkResolveImages in Vite MDX
config, export 'images' from MDX modules, and add imagesGlob +
getPageImages helper in source.ts.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* feat: return images array in /api/page response
Includes all resolved image URLs from page content in the API
response for downstream preloading.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* feat: inject image preload links in SSR HTML head
Adds <link rel="preload" as="image"> tags for all page images
during server-side rendering for faster initial page load.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* feat: prefetch page images on client-side navigation
After fetching page data from /api/page, preloads all images via
new Image() so they're cached by the browser before MDX renders.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* refactor: extract MdxNodeType const to shared mdx-utils module
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* refactor: merge image collection into remark-resolve-images
Single tree traversal now both resolves and collects image URLs,
eliminating the separate remark-collect-images plugin.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* refactor: use getPageImages(page) in SSR instead of loadPageModule
Images are already available from the eager imagesGlob via page
data, so no need to load them again from ssrModules.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments