Skip to content

Commit ed1647f

Browse files
committed
fix: marked-terminal constructor needs new keyword
1 parent e17b1fb commit ed1647f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));
1818
const TEMPLATE_DIR = path.resolve(__dirname, "../templates");
1919

2020
// Configure marked for terminal rendering
21-
marked.use(TerminalRenderer() as any);
21+
marked.use({ renderer: new TerminalRenderer() as any });
2222

2323
/** Render markdown content for terminal display */
2424
function renderMarkdown(text: string): string {

0 commit comments

Comments
 (0)