Skip to content

Commit 1ae3054

Browse files
authored
Update website/docs/guides/markdown-features/markdown-features-plugins.mdx
1 parent ad37370 commit 1ae3054

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/docs/guides/markdown-features/markdown-features-plugins.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ The writeup below is **not** meant to be a comprehensive guide to creating a plu
160160
For example, let's make a plugin that visits every `h2` heading and adds a `Section X. ` prefix. First, create your plugin source file anywhere—you can even publish it as a separate npm package and install it like explained above. We would put ours at `src/remark/section-prefix.js`. A remark/rehype plugin is just a function that receives the `options` and returns a `transformer` that operates on the AST.
161161

162162
```js "src/remark/section-prefix.js"
163-
import { visit } from 'unist-util-visit';
163+
import {visit} from 'unist-util-visit';
164164

165165
const plugin = (options) => {
166166
const transformer = async (ast) => {

0 commit comments

Comments
 (0)