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

View File

@@ -6,7 +6,7 @@
import React from 'react';
import { Text } from 'ink';
import { all, createLowlight } from 'lowlight';
import { common, 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(all);
const lowlight = createLowlight(common);
function renderHastNode(
node: Root | Element | HastText | RootContent,