Skip to content

Commit

Permalink
Add missing import to site example
Browse files Browse the repository at this point in the history
Closes GH-2115.

Reviewed-by: Titus Wormer <tituswormer@gmail.com>

Co-authored-by: Titus <tituswormer@gmail.com>
  • Loading branch information
elpddev and wooorm committed Aug 27, 2022
1 parent 478c78b commit 996771a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/guides/syntax-highlighting.server.mdx
Expand Up @@ -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<Array<void>, import('hast').Root>} */
function rehypeMetaAsAttributes() {
return (tree) => {
Expand Down

1 comment on commit 996771a

@vercel
Copy link

@vercel vercel bot commented on 996771a Aug 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.