From e9f5fa7858e9083ad1791a6a9d2e0654114aeb7e Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 18 Oct 2021 19:39:43 +0100 Subject: [PATCH] Update usage here too --- src/components/views/elements/SyntaxHighlight.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/views/elements/SyntaxHighlight.tsx b/src/components/views/elements/SyntaxHighlight.tsx index cd65cddfba..a468c44e67 100644 --- a/src/components/views/elements/SyntaxHighlight.tsx +++ b/src/components/views/elements/SyntaxHighlight.tsx @@ -15,7 +15,7 @@ limitations under the License. */ import React from 'react'; -import { highlightBlock } from 'highlight.js'; +import { highlightElement } from 'highlight.js'; import { replaceableComponent } from "../../../utils/replaceableComponent"; interface IProps { @@ -33,7 +33,7 @@ export default class SyntaxHighlight extends React.Component { // componentDidUpdate used here for reusability public componentDidUpdate(): void { - if (this.el) highlightBlock(this.el); + if (this.el) highlightElement(this.el); } // call componentDidUpdate because _ref is fired on initial render