Skip to content

Commit

Permalink
fix(benchmark): enable markdown in list
Browse files Browse the repository at this point in the history
  • Loading branch information
angristan committed Jul 11, 2021
1 parent 5e11e46 commit 2718cff
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/components/Benchmarks/BenchmarkRow.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Link } from 'react-router-dom';
import React from 'react';
import benchmarkModel from './BenchmarkModel';
import ReactMarkdown from 'react-markdown';

interface BenchmarkRowProps {
benchmark: benchmarkModel;
Expand Down Expand Up @@ -51,9 +52,11 @@ const BenchmarkRow: React.FC<BenchmarkRowProps> = ({ benchmark }) => {
key={benchmark.subject.substring(0, 50)}
className="text-sm text-gray-900"
>
{benchmark.subject.length > truncateSize
? benchmark.subject.substring(0, truncateSize) + '...'
: benchmark.subject}
<ReactMarkdown>
{benchmark.subject.length > truncateSize
? benchmark.subject.substring(0, truncateSize) + '...'
: benchmark.subject}
</ReactMarkdown>
</div>
</td>
<td className="px-6 py-4 whitespace-nowrap">
Expand Down

0 comments on commit 2718cff

Please sign in to comment.