Support syntax highlighting for more languages (#246)

This commit is contained in:
Jacob Richman 2025-05-04 07:57:55 -07:00 committed by GitHub
parent ae96b8914e
commit 2b309a8abb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
import React from 'react';
import { Text } from 'ink';
import { common, createLowlight } from 'lowlight';
import { all, createLowlight } from 'lowlight';
import type {
Root,
Element,
@ -18,7 +18,7 @@ import { themeManager } from '../themes/theme-manager.js';
import { Theme } from '../themes/theme.js';
// Configure themeing and parsing utilities.
const lowlight = createLowlight(common);
const lowlight = createLowlight(all);
function renderHastNode(
node: Root | Element | HastText | RootContent,