From 8edf128d590a2b50e00c84f6d9f887052009c720 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Espino=20Garc=C3=ADa?= Date: Wed, 11 Jan 2023 20:40:01 +0100 Subject: [PATCH] Fix code syntax highlight on full screen view (#6944) --- 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, };