Skip to content

Commit

Permalink
Add proc text to italic filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
limdingwen committed Jul 28, 2024
1 parent d6194c8 commit d56e81b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion site/src/app/components/DebateSpeechCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ import StandardCardDescription from "@/app/components/StandardCardDescription";
import Markdown from "react-markdown";
import React from "react";

function formatProcText(content: string) {
return content
.replaceAll("[(proc text) ", "*")
.replaceAll(" (proc text)]", "*");
}

export default function DebateSummary({
debateSpeech,
}: {
Expand All @@ -15,7 +21,7 @@ export default function DebateSummary({
<StandardCardTitle>{debateSpeech.speaker_name}</StandardCardTitle>
)}
<StandardCardDescription>
<Markdown>{debateSpeech.content}</Markdown>
<Markdown>{formatProcText(debateSpeech.content)}</Markdown>
</StandardCardDescription>
</StandardCard>
);
Expand Down

0 comments on commit d56e81b

Please sign in to comment.