This commit is contained in:
Titus 2021-11-11 13:07:45 +01:00 committed by GitHub
parent c369fcb50b
commit eb52b1adc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.