diff options
| author | Jacob Richman <[email protected]> | 2025-05-04 07:57:55 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-04 07:57:55 -0700 |
| commit | 2b309a8abbc6619a8ca4aeb6b5a82589efcdaeb7 (patch) | |
| tree | 3a09c542539d8d133eab03b2f957e4e7594b86d1 | |
| parent | ae96b8914ed1fb4b1ad998e8abe1791864900e92 (diff) | |
Support syntax highlighting for more languages (#246)
| -rw-r--r-- | packages/cli/src/ui/utils/CodeColorizer.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/cli/src/ui/utils/CodeColorizer.tsx b/packages/cli/src/ui/utils/CodeColorizer.tsx index 1916ff50..d99297b4 100644 --- a/packages/cli/src/ui/utils/CodeColorizer.tsx +++ b/packages/cli/src/ui/utils/CodeColorizer.tsx @@ -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, |
