diff --git a/readme.md b/readme.md index 31a73a3..c2acd08 100644 --- a/readme.md +++ b/readme.md @@ -312,7 +312,7 @@ somewhere in your types, as that registers the new node types in the tree. import {visit} from 'unist-util-visit' /** @type {import('unified').Plugin<[], import('mdast').Root>} */ -export default function myRemarkPlugin() => { +export default function myRemarkPlugin() { return (tree) => { visit(tree, (node) => { // `node` can now be one of the nodes for directives.