@hagicode/hagilight 0.8.1-dev.93.1.d28d470 → 0.8.1-dev.95.1.7e01c25

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 (2) hide show
  1. package/README.md +2 -0
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -38,6 +38,8 @@ to opt in while keeping the same `locale` and `links` props.
38
38
 
39
39
  `hagilight()` registers the content-image plugin from `@hagicode/hagilight-core/content-images`. Markdown and MDX body images then get `loading="lazy"`, `decoding="async"`, and the class `hagilight-content-image`, with the author's values kept. This registration does not depend on `enabled`, so `hagilight({ enabled: false })` still registers the plugin.
40
40
 
41
+ Local Markdown (`.md`) body images are also wrapped in a `<picture>` element with AVIF and WebP sources. This needs an image service that can encode AVIF: the default sharp service does, and the passthrough no-op service skips the wrapper with one warning. MDX, site-root, and remote images are not wrapped. Encoding adds build time, which Astro caches. Each `<source>` also carries `src`, `loading`, `decoding`, `width`, and `height` from Astro's output; browsers ignore these on `source`, but they are not valid HTML there. The opt-out below turns this step off too.
42
+
41
43
  To opt out, pass either form:
42
44
 
43
45
  ```js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hagicode/hagilight",
3
- "version": "0.8.1-dev.93.1.d28d470",
3
+ "version": "0.8.1-dev.95.1.7e01c25",
4
4
  "type": "module",
5
5
  "description": "Astro integrations and components for HagiCode sites",
6
6
  "repository": {
@@ -33,14 +33,14 @@
33
33
  "rss*.xml.ts"
34
34
  ],
35
35
  "peerDependencies": {
36
- "astro": "^6.0.7 || ^7.3.5"
36
+ "astro": ">=7"
37
37
  },
38
38
  "devDependencies": {
39
39
  "astro": "^7.3.5"
40
40
  },
41
41
  "dependencies": {
42
42
  "@astrojs/sitemap": "^3.7.4",
43
- "@hagicode/hagilight-core": "0.8.1-dev.93.1.d28d470"
43
+ "@hagicode/hagilight-core": "0.8.1-dev.95.1.7e01c25"
44
44
  },
45
45
  "keywords": [
46
46
  "astro-component",