mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
fork refine
This commit is contained in:
9
packages/cli/src/utils/marked-terminal-renderer/index.ts
Normal file
9
packages/cli/src/utils/marked-terminal-renderer/index.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { renderCodeMarkdown } from "@utils/swizzle/renderCodeMarkdown";
|
||||
import { marked } from "marked";
|
||||
import TerminalRenderer from "marked-terminal";
|
||||
|
||||
export const markedTerminalRenderer = (markdown: string) => {
|
||||
return marked(markdown, {
|
||||
renderer: new TerminalRenderer({ code: renderCodeMarkdown }) as any,
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user