Skip to content

Question regarding the use of marked.parse in AnalysisPanel.tsx #58

@VAN613

Description

@VAN613

I hope this message finds you well. I recently noticed a change in the file
gpt-rag-frontend/frontend/src/components/AnalysisPanel/AnalysisPanel.tsx

const sanitizedHTML = DOMPurify.sanitize(thoughtsContent);

This change appears to have occurred with the merge of pull request #57. I am curious to know if there is a specific reason for not using the following code:

const sanitizedHTML = DOMPurify.sanitize(marked.parse(thoughtsContent, { async: false }));

Without the use of marked.parse, the appearance seems slightly different to me. I also wonder if there might be concerns about increased content size when using marked.parse, but this is just a guess on my part. Could you please clarify if there was an intentional reason for opting not to use marked.parse?

Thank you very much for your time and assistance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions