mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 23:45:44 +01:00
replace highlightjs with prismjs
This commit is contained in:
@@ -23,9 +23,8 @@
|
||||
*/
|
||||
import React from "react";
|
||||
|
||||
import { LightAsync as ReactSyntaxHighlighter } from "react-syntax-highlighter";
|
||||
// @ts-ignore
|
||||
import { arduinoLight } from "react-syntax-highlighter/dist/cjs/styles/hljs";
|
||||
import { PrismAsyncLight as ReactSyntaxHighlighter } from "react-syntax-highlighter";
|
||||
import { ghcolors } from "react-syntax-highlighter/dist/esm/styles/prism";
|
||||
|
||||
type Props = {
|
||||
language?: string;
|
||||
@@ -50,7 +49,7 @@ class SyntaxHighlighter extends React.Component<Props> {
|
||||
render() {
|
||||
const language = this.getLanguage();
|
||||
return (
|
||||
<ReactSyntaxHighlighter showLineNumbers={false} language={language} style={arduinoLight}>
|
||||
<ReactSyntaxHighlighter showLineNumbers={false} language={language} style={ghcolors}>
|
||||
{this.props.value}
|
||||
</ReactSyntaxHighlighter>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user