diff --git a/docs/plugins/CrawlLinks.md b/docs/plugins/CrawlLinks.md index c3134d505..dafe39a20 100644 --- a/docs/plugins/CrawlLinks.md +++ b/docs/plugins/CrawlLinks.md @@ -25,7 +25,7 @@ This plugin accepts the following configuration options: - `Image("/static/icon.png")` - `Emoji("🪴")` - `Path({code: "really long string like M320 0H288V64h32 82.7L201.4 265.4...", viewbox: "0 0 512 512"})` - - Example use: `substitutions: [ [/garden!(.+)/, Emoji("🪴")], ],` + - Example use: `substitutions: [ [/garden!(.+)/, Emoji("🪴")], ],` - This would let you write links in Markdown like `[Someone's garden](garden!https://their-website.com)`, which would look like `Someone's Garden🪴` on the website. > [!warning] diff --git a/quartz.config.ts b/quartz.config.ts index fd33cd7e9..91aea4a8a 100644 --- a/quartz.config.ts +++ b/quartz.config.ts @@ -75,7 +75,7 @@ const config: QuartzConfig = { markdownLinkResolution: "shortest", // See https://quartz.jzhao.xyz/plugins/CrawlLinks // Try uncommenting the below line and writing [Someone's Garden](garden!https://jzhao.xyz/) in markdown - // substitutions: [ [/garden!(.+)/, Emoji("🪴")], ], + // substitutions: [[/garden!(.+)/, Emoji("🪴")]], }), Plugin.Description(), Plugin.Latex({ renderEngine: "katex" }),