From 05d6684299694dec245bd82524343468588ef4b6 Mon Sep 17 00:00:00 2001 From: Nir Parisian Date: Tue, 11 Jul 2023 12:36:22 +0300 Subject: [PATCH] cause troubles --- .../src/components/modal/InstallChartModal/ChartValues.tsx | 5 +---- dashboard/src/components/revision/RevisionResource.tsx | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/dashboard/src/components/modal/InstallChartModal/ChartValues.tsx b/dashboard/src/components/modal/InstallChartModal/ChartValues.tsx index 1ca05ce7..430b8003 100644 --- a/dashboard/src/components/modal/InstallChartModal/ChartValues.tsx +++ b/dashboard/src/components/modal/InstallChartModal/ChartValues.tsx @@ -1,4 +1,3 @@ -import { marked } from "marked"; import hljs from "highlight.js"; import Spinner from "../../Spinner"; @@ -22,9 +21,7 @@ export const ChartValues = ({ dangerouslySetInnerHTML={ chartValues && !loading ? { - __html: marked( - hljs.highlight(chartValues, { language: "yaml" }).value - ), + __html: hljs.highlight(chartValues, { language: "yaml" }).value, } : undefined } diff --git a/dashboard/src/components/revision/RevisionResource.tsx b/dashboard/src/components/revision/RevisionResource.tsx index 16d5e922..4392e209 100644 --- a/dashboard/src/components/revision/RevisionResource.tsx +++ b/dashboard/src/components/revision/RevisionResource.tsx @@ -1,7 +1,6 @@ import { useEffect, useState } from "react"; import { useParams } from "react-router-dom"; import hljs from "highlight.js"; -import { marked } from "marked"; import { RiExternalLinkLine } from "react-icons/ri"; import { @@ -201,7 +200,7 @@ const DescribeResource = ({ className="bg-white rounded p-4 font-medium text-base font-sf-mono" style={{ overflow: "unset" }} dangerouslySetInnerHTML={{ - __html: marked(yamlFormattedData), + __html: yamlFormattedData, }} />