Merge remote-tracking branch 'origin/feature/annotate_prismjs' into feature/syntax-highlighting

# Conflicts:
#	package.json
#	scm-ui/eslint-config/package.json
#	scm-ui/ui-components/src/SyntaxHighlighter.tsx
#	scm-ui/ui-components/src/repos/annotate/Annotate.tsx
#	scm-ui/ui-plugins/package.json
#	yarn.lock
This commit is contained in:
Konstantin Schaper
2020-10-12 11:23:56 +02:00
6 changed files with 36 additions and 26 deletions

View File

@@ -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;
@@ -53,7 +52,7 @@ class SyntaxHighlighter extends React.Component<Props> {
const { showLineNumbers } = this.props;
const language = this.getLanguage();
return (
<ReactSyntaxHighlighter showLineNumbers={showLineNumbers} language={language} style={arduinoLight}>
<ReactSyntaxHighlighter showLineNumbers={showLineNumbers} language={language} style={ghcolors}>
{this.props.value}
</ReactSyntaxHighlighter>
);