@antv/t8
Version:
T8 is a text visualization solution for unstructured data within the AntV technology stack, and it is a declarative T8 markdown syntax that can be used to describe the content of data interpretation reports.
17 lines • 669 B
TypeScript
import { NarrativeTextSpec } from '../schema';
/**
* Parses a T8 Syntax string into a NarrativeTextSpec object.
*
* T8 Syntax supports:
* - Markdown-style headings (# to ######)
* - Paragraphs (text separated by blank lines)
* - Bullet lists (- or * for unordered, 1. 2. 3. for ordered)
* - Text formatting (**bold**, *italic*, __underline__)
* - Links [text](url)
* - Entity syntax: [displayText](entityType, key1=value1, key2="value2")
*
* @param syntaxString - The T8 Syntax string to parse
* @returns A NarrativeTextSpec object
*/
export declare function parseSyntax(syntaxString: string): NarrativeTextSpec;
//# sourceMappingURL=syntax-parser.d.ts.map