Browse Source

Update markdown.tsx

Algorithm5838 1 năm trước cách đây
mục cha
commit
35b0bd76f8
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/components/markdown.tsx

+ 1 - 1
app/components/markdown.tsx

@@ -115,6 +115,7 @@ function _MarkDownContent(props: { content: string }) {
       ]}
       components={{
         pre: PreCode,
+        p: (pProps) => <p {...pProps} dir="auto" />,
         a: (aProps) => {
           const href = aProps.href || "";
           const isInternal = /^\/#/i.test(href);
@@ -150,7 +151,6 @@ export function Markdown(
       ref={mdRef}
       onContextMenu={props.onContextMenu}
       onDoubleClickCapture={props.onDoubleClickCapture}
-      dir="auto"
     >
       {props.loading ? (
         <LoadingIcon />