Skip to content

Commit

Permalink
fix: enable html rendering on addon description
Browse files Browse the repository at this point in the history
  • Loading branch information
Saschl committed Oct 9, 2024
1 parent 816c3a0 commit 22e685e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/renderer/components/AddonSection/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import { InstallManager } from 'renderer/utils/InstallManager';
import { StateSection } from 'renderer/components/AddonSection/StateSection';
import { ExternalApps } from 'renderer/utils/ExternalApps';
import { MyInstall } from 'renderer/components/AddonSection/MyInstall';
import rehypeRaw from 'rehype-raw';

const abortControllers = new Array<AbortController>(20);
abortControllers.fill(new AbortController());
Expand Down Expand Up @@ -537,7 +538,11 @@ const About: FC<{ addon: Addon }> = ({ addon }) => (

<h2 className="text-white">{addon.aircraftName}</h2>
</div>
<ReactMarkdown className="font-manrope text-xl font-light leading-relaxed text-white" linkTarget={'_blank'}>
<ReactMarkdown
className="font-manrope text-xl font-light leading-relaxed text-white"
linkTarget={'_blank'}
rehypePlugins={[rehypeRaw]}
>
{addon.description}
</ReactMarkdown>

Expand Down

0 comments on commit 22e685e

Please sign in to comment.