yuque-dl
Version:
yuque 知识库下载
14 lines (13 loc) • 456 B
TypeScript
import type { Root, Link, InlineCode } from 'mdast';
export declare function getAst(mdData: string): Root;
export declare function toMd(astTree: Root): string;
export interface ILinkItem {
node: Link;
keyChain: string[];
}
export declare function getLinkList(curNode: Root): ILinkItem[];
export interface IInlinkCodeItem {
node: InlineCode;
keyChain: string[];
}
export declare function getInLineCodeList(curNode: Root): IInlinkCodeItem[];