mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-24 05:14:06 -06:00
Updated code example
This commit is contained in:
parent
95eb88899f
commit
cdef619141
@ -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>
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user