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) => {