From 1934945d72c86ec04466b55cb3d14ead9536d40c Mon Sep 17 00:00:00 2001 From: Mattermost Build Date: Wed, 11 Jan 2023 21:45:14 +0200 Subject: [PATCH] Fix code syntax highlight on full screen view (#6944) (#6954) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 8edf128d590a2b50e00c84f6d9f887052009c720) Co-authored-by: Daniel Espino GarcĂ­a --- app/components/markdown/markdown_code_block/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/markdown/markdown_code_block/index.tsx b/app/components/markdown/markdown_code_block/index.tsx index 7522257f3..5c6710c13 100644 --- a/app/components/markdown/markdown_code_block/index.tsx +++ b/app/components/markdown/markdown_code_block/index.tsx @@ -85,7 +85,7 @@ const MarkdownCodeBlock = ({language = '', content, textStyle}: MarkdownCodeBloc const screen = Screens.CODE; const passProps = { code: content, - language, + language: getHighlightLanguageFromNameOrAlias(language), textStyle, };