Skip to content

Commit

Permalink
explorer: enable markdown for any type of answer in round applications
Browse files Browse the repository at this point in the history
  • Loading branch information
gravityblast committed Feb 5, 2024
1 parent c199d13 commit d35e7b9
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -412,9 +412,12 @@ function ApplicationFormAnswers(props: {
className="text-md prose prose-h1:text-lg prose-h2:text-base prose-h3:text-base prose-a:text-blue-600"
></p>
) : (
<p className="text-base text-black">
{answerText.replace(/\n/g, "<br/>")}
</p>
<p
className="text-base text-black"
dangerouslySetInnerHTML={{
__html: renderToHTML(answerText.replace(/\n/g, "\n\n")),
}}
></p>
)}
</div>
);
Expand Down

0 comments on commit d35e7b9

Please sign in to comment.