import { marked } from "marked";
// @ts-expect-error -- no type declarations
import { markedTerminal } from "marked-terminal";
marked.use(markedTerminal());
/** Parse markdown and return ANSI-styled terminal text. */
export function renderMarkdown(text) {
    const result = marked.parse(text);
    return result.replace(/\n+$/, "");
}
//# sourceMappingURL=markdown.js.map