From 6fd9f4a1601424f054985611a716123c272429c3 Mon Sep 17 00:00:00 2001 From: matthewp Date: Fri, 7 Jul 2023 20:04:18 +0000 Subject: [PATCH] [ci] format --- packages/integrations/prefetch/README.md | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/packages/integrations/prefetch/README.md b/packages/integrations/prefetch/README.md index 9a061fc2a..6502265ec 100644 --- a/packages/integrations/prefetch/README.md +++ b/packages/integrations/prefetch/README.md @@ -86,7 +86,7 @@ export default defineConfig({ By default, the prefetch script also searches the page for any links that include a `rel="prefetch-intent"` attribute, ex: ``. This behavior can be changed in your `astro.config.*` file to use a custom query selector when finding prefetch-intent links. -__`astro.config.mjs`__ +**`astro.config.mjs`** ```js import { defineConfig } from 'astro/config'; @@ -94,13 +94,15 @@ import prefetch from '@astrojs/prefetch'; export default defineConfig({ // ... - integrations: [prefetch({ - // Only prefetch links with an href that begins with `/products` or `/coupons` - intentSelector: ["a[href^='/products']", "a[href^='/coupons']"] - - // Use a string to prefetch a single selector - // intentSelector: "a[href^='/products']" - })], + integrations: [ + prefetch({ + // Only prefetch links with an href that begins with `/products` or `/coupons` + intentSelector: ["a[href^='/products']", "a[href^='/coupons']"], + + // Use a string to prefetch a single selector + // intentSelector: "a[href^='/products']" + }), + ], }); ```