[fix] force code-block direction to be ltr
This commit is contained in:
@@ -33,7 +33,7 @@ const PreWrapper = ({ children }: { children: JSX.Element }) => {
|
|||||||
{copied ? <FaCheck /> : <IoCopyOutline />}
|
{copied ? <FaCheck /> : <IoCopyOutline />}
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
<pre className="p-2 dark:bg-[#0d1117] bg-[#F6F8FA] rounded-md flat-scrollbar-normal not-prose text-sm dark:selection:bg-gray-700 selection:bg-gray-300 selection:text-inherit">
|
<pre className="p-2 dark:bg-[#0d1117] bg-[#F6F8FA] rounded-md flat-scrollbar-normal not-prose text-sm dark:selection:bg-gray-700 selection:bg-gray-300 selection:text-inherit" dir="ltr">
|
||||||
{children}
|
{children}
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user