@hagicode/hagilight-starlight 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.
- package/README.md +2 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -45,6 +45,8 @@ hagilight({ themes: { enabled: false } })
|
|
|
45
45
|
|
|
46
46
|
`hagilight()` registers the content-image plugin from `@hagicode/hagilight-core/content-images` for the whole site. Every Markdown or MDX body image outside a `<picture>` element gets `loading="lazy"`, `decoding="async"`, and the class `hagilight-content-image`. Values the author set are kept, and logos and showcase images are not changed.
|
|
47
47
|
|
|
48
|
+
Local Markdown (`.md`) body images are also wrapped in a `<picture>` element with AVIF and WebP `<source>` elements, produced by Astro's image service. The default sharp service encodes AVIF. With the passthrough no-op service, the wrapper is skipped and one warning is logged. 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. The step adds no option of its own.
|
|
49
|
+
|
|
48
50
|
Turn it off for the site:
|
|
49
51
|
|
|
50
52
|
```js
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hagicode/hagilight-starlight",
|
|
3
|
-
"version": "0.8.1-dev.
|
|
3
|
+
"version": "0.8.1-dev.95.1.7e01c25",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Starlight plugin and components for HagiCode documentation",
|
|
6
6
|
"repository": {
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"assets/showcase/*"
|
|
54
54
|
],
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@hagicode/hagilight-core": "0.8.1-dev.
|
|
56
|
+
"@hagicode/hagilight-core": "0.8.1-dev.95.1.7e01c25"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"@astrojs/starlight": "^0.42.4",
|