Updated code example

This commit is contained in:
Stephen Tse 2025-05-03 16:30:21 -07:00
parent 95eb88899f
commit cdef619141

View File

@ -55,11 +55,11 @@ export const Images: QuartzTransformerPlugin<Partial<Options>> = (userOpts) => {
* HAST plugin that updates image tags of supported formats to serve * HAST plugin that updates image tags of supported formats to serve
* optimized images. * optimized images.
* *
* For example, given `<img src="./image.png" data-slug="image.png" />`, it generates: * For example, given `<img src="../../assets/image.png" width="100" data-slug="assets/image.png" />`, it generates:
* *
* ```html * ```html
* <a href="./image.webp" class="preview-image-link" data-no-popover="true" data-router-ignore="true"> * <a href="../../assets/image.webp" class="preview-image-link" data-no-popover="true" data-router-ignore="true">
* <img src="./image-preview.webp" class="preview-image" /> * <img src="../../assets/image-preview.webp" width="100" height="auto" class="preview-image" />
* </a> * </a>
* ``` * ```
*/ */