UNPKG

@telefonica/markdown-confluence-sync

Version:

Creates/updates/deletes Confluence pages based on markdown files in a directory. Supports Mermaid diagrams and per-page configuration using frontmatter metadata. Works great with Docusaurus

12 lines (11 loc) 569 B
import type { Data, Node as UnistNode } from "unist"; import type { Test } from "unist-util-is"; import type { BuildReplacer } from "./unist-util-replace.types.js"; /** * Replace nodes in a tree given a test and a replacement function. * * @param tree - Root node of the tree to visit. * @param is - Test to check if a node should be replaced. * @param replacement - Function to build the replacement node. */ export declare function replace<Tree extends UnistNode<Data>, Check extends Test>(tree: Tree, is: Check, replacement: BuildReplacer<Tree, Check>): void;