We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18be6bf commit cf8c95dCopy full SHA for cf8c95d
1 file changed
frontend/src/commons/custom_fields/MarkdownField.tsx
@@ -1,6 +1,6 @@
1
import Markdown from "markdown-to-jsx";
2
import { marked } from "marked";
3
-import { Fragment, React } from "react";
+import { Fragment, HTMLAttributes } from "react";
4
import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";
5
6
import { useLinkStyles } from "../../commons/layout/themes";
@@ -56,7 +56,7 @@ function isMarkdownValue(value: string): boolean {
56
return isMarkdown;
57
}
58
59
-type CodeProps = React.HTMLAttributes<HTMLElement>;
+type CodeProps = HTMLAttributes<HTMLElement>;
60
61
function SyntaxHighlightedCode({ className, children, ...rest }: CodeProps) {
62
// markdown-to-jsx tags fenced blocks with `lang-<language>`.
0 commit comments