From d68df590cd2a2264ef7de2ab7ea76568f95293c1 Mon Sep 17 00:00:00 2001 From: Alireza Imani Date: Mon, 13 Jan 2025 14:53:43 +0330 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=80=20fix:=20code=20block=20direction?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: change allow change language default value to false --- src/Highlighter/FullFeatured.tsx | 2 +- src/Highlighter/SyntaxHighlighter/index.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Highlighter/FullFeatured.tsx b/src/Highlighter/FullFeatured.tsx index 520b172e..c5478e5e 100644 --- a/src/Highlighter/FullFeatured.tsx +++ b/src/Highlighter/FullFeatured.tsx @@ -28,7 +28,7 @@ export const HighlighterFullFeatured = memo( showLanguage, className, style, - allowChangeLanguage = true, + allowChangeLanguage = false, fileName, icon, actionsRender, diff --git a/src/Highlighter/SyntaxHighlighter/index.tsx b/src/Highlighter/SyntaxHighlighter/index.tsx index 34517239..c0a56933 100644 --- a/src/Highlighter/SyntaxHighlighter/index.tsx +++ b/src/Highlighter/SyntaxHighlighter/index.tsx @@ -33,6 +33,7 @@ const SyntaxHighlighter = memo( dangerouslySetInnerHTML={{ __html: data as string, }} + dir="ltr" style={style} /> )}