Skip to content

Commit

Permalink
fix: markdown for options
Browse files Browse the repository at this point in the history
  • Loading branch information
ishwar rimal authored and ishwar rimal committed Dec 2, 2024
1 parent 56cfd15 commit b5dd441
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Questions/Question.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { useState} from "react";
import { useDispatch, useSelector } from "react-redux";
import ReactMarkdown from "react-markdown";
import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";
import { solarizedlight } from "react-syntax-highlighter/dist/esm/styles/prism";
import { answerQuestion } from "../../store/quizSlice";
Expand Down Expand Up @@ -67,7 +68,7 @@ const Question = () => {
className="choice-button"
onClick={() => handleAnswer(answer)}
>
{choice}
<ReactMarkdown>{choice}</ReactMarkdown>
</button>

})}
Expand Down

0 comments on commit b5dd441

Please sign in to comment.