Skip to content

Commit

Permalink
cause troubles
Browse files Browse the repository at this point in the history
  • Loading branch information
nir2002 committed Jul 11, 2023
1 parent a139e72 commit 05d6684
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { marked } from "marked";
import hljs from "highlight.js";
import Spinner from "../../Spinner";

Expand All @@ -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
}
Expand Down
3 changes: 1 addition & 2 deletions dashboard/src/components/revision/RevisionResource.tsx
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down Expand Up @@ -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,
}}
/>
</div>
Expand Down

0 comments on commit 05d6684

Please sign in to comment.