Skip to content

Commit

Permalink
fix[tools]: fix markdown render in tools page
Browse files Browse the repository at this point in the history
  • Loading branch information
Karan-Palan committed Jan 21, 2025
1 parent ee9538b commit 21c47da
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 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 Markdown from 'markdown-to-jsx';

export default function ToolingDetailModal({
tool,
Expand Down Expand Up @@ -133,7 +134,9 @@ 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>
<div className='prose dark:prose-invert'>
<Markdown>{tool.toolingListingNotes}</Markdown>
</div>
</div>
)}

Expand Down

0 comments on commit 21c47da

Please sign in to comment.