UNPKG

mind-elixir

Version:

Mind elixir is a free open source mind map core.

19 lines (18 loc) 1.29 kB
import type { MindElixirData } from '../types'; export declare const plaintextExample = "- Root Node\n - Child Node 1\n - Child Node 1-1\n - Child Node 1-2\n - Child Node 1-3\n - }:2 Summary of first two nodes\n - Child Node 2\n - Child Node 2-1 [^id1]\n - Child Node 2-2 [^id2]\n - Child Node 2-3 {color: #e87a90}\n - > [^id1] <-Bidirectional Link-> [^id2]\n - Child Node 3\n - Child Node 3-1 [^id3]\n - Child Node 3-2 [^id4]\n - Child Node 3-3 [^id5]\n - > [^id3] >-Unidirectional Link-> [^id4]\n - > [^id3] <-Unidirectional Link-< [^id5]\n - Child Node 4\n - Child Node 4-1 [^id6]\n - Child Node 4-2 [^id7]\n - Child Node 4-3 [^id8]\n - } Summary of all previous nodes\n - Child Node 4-4\n - > [^id1] <-Link position is not restricted, as long as the id can be found during rendering-> [^id8]\n"; /** * Convert plaintext format to MindElixirData * * Format: * - Root node * - Child 1 * - Child 1-1 [^id1] * - Child 1-2 {color: #e87a90} * - }:2 Summary of first two nodes * - Child 2 [^id2] * - > [^id1] <-label-> [^id2] * * @param plaintext - The plaintext string to convert * @returns MindElixirData object */ export declare function plaintextToMindElixir(plaintext: string): MindElixirData;