Skip to content

Commit

Permalink
fix: displaying readme of markdown format in appTemplate (#4322)
Browse files Browse the repository at this point in the history
Signed-off-by: lingbo <[email protected]>
  • Loading branch information
lingbohome authored Oct 18, 2024
1 parent 59b5185 commit a5db1ef
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { useCacheStore as useStore } from '../../../../../hooks';
import TextPreview from '../../../../TextPreview';
import { openpitrixStore } from '../../../../../stores';
import { StyledCard, TabsWrapper } from './styles';
import { Markdown } from '../../../../Markdown';

const { fileStore, fetchAppDetail } = openpitrixStore;

Expand Down Expand Up @@ -72,7 +73,7 @@ function AppTemplate(): JSX.Element {
{filesLoading ? (
<Loading className="page-loading" />
) : (
<ReactMarkdown className="content">{readme}</ReactMarkdown>
<Markdown isSupportGFM themeName="github-light">{readme}</Markdown>
)}
</>
)}
Expand Down

0 comments on commit a5db1ef

Please sign in to comment.