import { visitParents } from 'unist-util-visit-parents' interface ElementNode { type: 'element' tagName: string properties: { // Properties can have any value type (strings, booleans, arrays, etc.) [key: string]: any } _scoped?: boolean } interface AncestorNode { properties?: { className?: string[] } } /** * Where it can mutate the AST to swap from: * *