Skip to content

Defer loading inline Markdown images - #108

Open
Golden007-prog wants to merge 1 commit into
OpenNBS:developfrom
Golden007-prog:fix/105-markdown-image-loading
Open

Golden007-prog wants to merge 1 commit into
OpenNBS:developfrom
Golden007-prog:fix/105-markdown-image-loading

Conversation

@Golden007-prog

Copy link
Copy Markdown

Summary

Inline images in blog and help articles now default to lazy loading and asynchronous decoding. Explicit HTML attributes still take precedence so authors can keep a prominent image eager. The separate blog hero is unchanged.

Closes #105.

Verification

  • Reproduced the eager load in the server-rendered output and added tests for both the default and an explicit override.
  • bun run build:packages
  • bun test with Bun 1.3.5: 258 passed.
  • bun run typecheck
  • prettier --check on both changed files.

Prepared with AI assistance and verified locally.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Markdown images: add loading=lazy / decoding=async

1 participant