askme-cli
Version:
askme-cli MCP server that collects user's next plan or confirmation through terminal window
45 lines • 1.18 kB
TypeScript
import React from "react";
export interface MarkdownElement {
type: "text" | "bold" | "italic" | "code" | "header" | "list";
content: string;
level?: number;
color?: string;
backgroundColor?: string;
bold?: boolean;
italic?: boolean;
}
/**
* Lightweight Markdown parser
* Supports: bold, italic, code, headers, lists
*/
export declare class SimpleMarkdownParser {
/**
* Parse markdown text into structured elements
*/
static parse(markdown: string): MarkdownElement[];
/**
* Parse inline markdown formats (bold, italic, code)
*/
private static parseInlineMarkdown;
/**
* Get header color
*/
private static getHeaderColor;
/**
* Render single markdown element as Ink component
*/
static renderElement(element: MarkdownElement, key: number): React.ReactElement;
/**
* Render inline format elements
*/
private static renderInlineElements;
/**
* Render formatted text (bold, italic)
*/
private static renderFormattedText;
/**
* Render italic text
*/
private static renderItalicText;
}
//# sourceMappingURL=markdownParser.d.ts.map