@hagicode/hagilight-core 0.8.1-dev.95.1.7e01c25 → 0.8.1-dev.97.1.97beddb
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 +1 -1
- package/dist/content-images.d.ts +1 -1
- package/dist/content-images.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ Shared Astro components, TypeScript utilities, and brand assets for HagiCode sit
|
|
|
8
8
|
npm install @hagicode/hagilight-core astro
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
Use a supported Astro version (
|
|
11
|
+
Use a supported Astro version (`>=7`). The other Hagilight packages install core automatically; install it directly if your site imports core entry points.
|
|
12
12
|
|
|
13
13
|
## Use
|
|
14
14
|
|
package/dist/content-images.d.ts
CHANGED
|
@@ -92,7 +92,7 @@ export interface UnifiedFileLike {
|
|
|
92
92
|
path?: unknown;
|
|
93
93
|
data?: LocalImageData;
|
|
94
94
|
}
|
|
95
|
-
/** Unified rehype plugin
|
|
95
|
+
/** Unified rehype plugin for sites whose `markdown.processor` is `unified()`. */
|
|
96
96
|
export declare function rehypeContentImages(options?: ContentImageOptions, picture?: PictureStep): (tree: ContentImageNode, file?: UnifiedFileLike) => void;
|
|
97
97
|
/** Sätteri hast plugin: Astro's default Markdown processor, through `hastPlugins`. */
|
|
98
98
|
export declare function satteriContentImages(options?: ContentImageOptions, picture?: PictureStep): SatteriContentImagePlugin;
|
package/dist/content-images.js
CHANGED
|
@@ -124,7 +124,7 @@ function wrapUnifiedPictures(node, inPicture, srcOf, nextIndex) {
|
|
|
124
124
|
wrapUnifiedPictures(child, inPicture || isPicture(child), srcOf, nextIndex);
|
|
125
125
|
});
|
|
126
126
|
}
|
|
127
|
-
/** Unified rehype plugin
|
|
127
|
+
/** Unified rehype plugin for sites whose `markdown.processor` is `unified()`. */
|
|
128
128
|
export function rehypeContentImages(options = {}, picture = { enabled: true }) {
|
|
129
129
|
const resolved = resolveContentImageOptions(options);
|
|
130
130
|
let pictureCount = 0;
|
package/package.json
CHANGED