fix: use stable unist types

This commit is contained in:
vgcman16 2025-06-05 21:27:33 -05:00
parent 1d66831395
commit 97ebceb11f

View File

@ -3,7 +3,7 @@ import remarkGfm from 'remark-gfm';
import type { PluggableList, Plugin } from 'unified';
import rehypeSanitize, { defaultSchema, type Options as RehypeSanitizeOptions } from 'rehype-sanitize';
import { SKIP, visit } from 'unist-util-visit';
import type { UnistNode, UnistParent } from 'node_modules/unist-util-visit/lib';
import type { Node as UnistNode, Parent as UnistParent } from 'unist';
export const allowedHTMLElements = [
'a',