From c13f6d604776fd269b0b6140a093bbf7b5f5b9a8 Mon Sep 17 00:00:00 2001 From: akmatoff Date: Tue, 5 Nov 2024 18:48:17 +0600 Subject: [PATCH] remove highlightjs --- src/components/shared/TextEditor/TextEditor.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/components/shared/TextEditor/TextEditor.tsx b/src/components/shared/TextEditor/TextEditor.tsx index 8039c13..8babab8 100644 --- a/src/components/shared/TextEditor/TextEditor.tsx +++ b/src/components/shared/TextEditor/TextEditor.tsx @@ -8,8 +8,6 @@ import Image from "@tiptap/extension-image"; import Heading from "@tiptap/extension-heading"; import { common, createLowlight } from "lowlight"; import { FC, forwardRef, useEffect, useState } from "react"; -import python from "highlight.js/lib/languages/python"; -import "highlight.js/scss/atom-one-dark.scss"; import Typography from "../Typography/Typography"; import EditorMenu from "./EditorMenu"; @@ -20,7 +18,6 @@ import CustomInput from "../CustomInput/CustomInput"; import { useNotification } from "@/hooks/useNotification"; const lowlight = createLowlight(common); -lowlight.register("python", python); interface Props { value: string;