From 996771aeb5302cb9d081f38e23bd06411e6bc03e Mon Sep 17 00:00:00 2001 From: Eyal Lapid <17731302+elpddev@users.noreply.github.com> Date: Sat, 27 Aug 2022 17:23:55 +0300 Subject: [PATCH] Add missing `import` to site example Closes GH-2115. Reviewed-by: Titus Wormer Co-authored-by: Titus --- docs/guides/syntax-highlighting.server.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/guides/syntax-highlighting.server.mdx b/docs/guides/syntax-highlighting.server.mdx index 509eb168a..7e13f3189 100644 --- a/docs/guides/syntax-highlighting.server.mdx +++ b/docs/guides/syntax-highlighting.server.mdx @@ -153,6 +153,8 @@ to interpret the `meta` field. For example, it’s possible to pass that string as a prop with a rehype plugin: ```js path="rehype-meta-as-attributes.js" +import {visit} from 'unist-util-visit' + /** @type {import('unified').Plugin, import('hast').Root>} */ function rehypeMetaAsAttributes() { return (tree) => {