mind-elixir
Version:
Mind elixir is a free open source mind map core.
18 lines (17 loc) • 695 B
TypeScript
import type { MindElixirData } from '../types';
/**
* Escape a topic so it survives the line-based format:
* - `\` and line breaks have syntactic meaning (escape sequences / record separator)
* - a leading `>` or `}` would turn the whole line into an arrow or summary record
*
* The leading marker is escaped last, otherwise the backslash added here would
* itself be doubled by the first replacement.
*/
export declare const escapeTopic: (topic: string) => string;
/**
* Convert MindElixirData back to plaintext format
*
* @param data - The MindElixirData object to convert
* @returns Plaintext string
*/
export declare function mindElixirToPlaintext(data: MindElixirData): string;