Skip to content

Commit

Permalink
Fix - fix markdown render in tools page (#1351)
Browse files Browse the repository at this point in the history
* fix[tools]: fix markdown render in tools page

* fix[tools]: use StyledMarkdown instead of directly using library
  • Loading branch information
Karan-Palan authored Feb 1, 2025
1 parent 5abdd7b commit 32a4525
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pages/tools/components/ToolingDetailModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import toTitleCase from '../lib/toTitleCase';
import Link from 'next/link';
import Image from 'next/image';
import Tag from './ui/Tag';
import StyledMarkdown from '~/components/StyledMarkdown';

export default function ToolingDetailModal({
tool,
Expand Down Expand Up @@ -145,7 +146,7 @@ export default function ToolingDetailModal({
{tool.toolingListingNotes && (
<div className='break-inside-avoid mb-4'>
<h3 className='text-lg font-semibold'>Tooling Listing Notes</h3>
<p>{tool.toolingListingNotes}</p>
<StyledMarkdown markdown={tool.toolingListingNotes} />
</div>
)}

Expand Down

0 comments on commit 32a4525

Please sign in to comment.