Revert "Support syntax highlighting for more languages (#246)" (#264)

This commit is contained in:
Jacob Richman 2025-05-06 08:16:32 -07:00 committed by GitHub
parent 792cc145b1
commit 6812235cfa
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 React from 'react';
import { Text } from 'ink'; import { Text } from 'ink';
import { all, createLowlight } from 'lowlight'; import { common, createLowlight } from 'lowlight';
import type { import type {
Root, Root,
Element, Element,
@ -18,7 +18,7 @@ import { themeManager } from '../themes/theme-manager.js';
import { Theme } from '../themes/theme.js'; import { Theme } from '../themes/theme.js';
// Configure themeing and parsing utilities. // Configure themeing and parsing utilities.
const lowlight = createLowlight(all); const lowlight = createLowlight(common);
function renderHastNode( function renderHastNode(
node: Root | Element | HastText | RootContent, node: Root | Element | HastText | RootContent,