parent
792cc145b1
commit
6812235cfa
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue