Skip to content

Commit 646f44a

Browse files
committed
added condition for maarkdown content to avoid unnecessary tags
1 parent 3a1f1b5 commit 646f44a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/IssueDescription.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ function IssueDescription({ currentOrg, currentIssue }) {
330330
{d.content && isLearningsDropdown == i && (
331331
<tr style={{ backgroundColor: "none" }}>
332332
<td align="left">
333-
<Markdown>{d.content}</Markdown>
333+
{d.content.match(/<ul>[\s\S]*?<\/ul>/) ? <Markdown>{d.content.match(/<ul>[\s\S]*?<\/ul>/)[0]}</Markdown> : <Markdown>{d.content}</Markdown>}
334334
</td>
335335
</tr>
336336
)}

0 commit comments

Comments
 (0)