Skip to content

Commit 996771a

Browse files
elpddevwooorm
andauthoredAug 27, 2022
Add missing import to site example
Closes GH-2115. Reviewed-by: Titus Wormer <tituswormer@gmail.com> Co-authored-by: Titus <tituswormer@gmail.com>
1 parent 478c78b commit 996771a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎docs/guides/syntax-highlighting.server.mdx

+2
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ to interpret the `meta` field.
153153
For example, it’s possible to pass that string as a prop with a rehype plugin:
154154

155155
```js path="rehype-meta-as-attributes.js"
156+
import {visit} from 'unist-util-visit'
157+
156158
/** @type {import('unified').Plugin<Array<void>, import('hast').Root>} */
157159
function rehypeMetaAsAttributes() {
158160
return (tree) => {

1 commit comments

Comments
 (1)

vercel[bot] commented on Aug 27, 2022

@vercel[bot]

Successfully deployed to the following URLs:

mdx – ./

mdx-git-main-mdx.vercel.app
v2.mdxjs.com
mdx-mdx.vercel.app
mdxjs.com

Please sign in to comment.