fix(issuecomment): fix issue display lists in IssueComment (#1638)

* fix(issuecomment): fix issue display lists in IssueComment

The IssueComment module was not displaying markdown list's ordered or unorderd.  Removing the
allowed elements so all markdowns are allowed seems to fix this issue and work similar to github's
comment  control with lists and markdown.

fix #1328

* fix #1328 Added back allowedElements, added the list elements to it also.

* feat(fixes formatting issue): fixes formating issue that was committed by mistake

fixes formatting issue that was comitted by mistake

fix #1328
This commit is contained in:
wolffman122
2025-05-20 07:23:57 -04:00
committed by GitHub
parent 52e85e1404
commit 515124bab4

View File

@@ -223,7 +223,10 @@ const IssueComment = ({
</Formik>
) : (
<div className="prose w-full max-w-full">
<ReactMarkdown skipHtml allowedElements={['p', 'em', 'strong']}>
<ReactMarkdown
skipHtml
allowedElements={['p', 'em', 'strong', 'ul', 'ol', 'li']}
>
{comment.message}
</ReactMarkdown>
</div>