Fermain / -mollify

9 stars 9 forks source link

Molly chat: html element get inserted as innerHTML #181

Closed MegumiKim closed 9 months ago

MegumiKim commented 9 months ago

In Molly's chat box, when a user posts html element (such as <div>, <img>, <p>), it gets directly inserted and shown as innerHTML. This is probably expected as markdown editor.

It might be more useful to be shown simply as code as students can also send Molly HTML code block without surrounding code blocks with back ticks, unless this is on purpose of course.

I have looked into this issue but was not able to fix it at Molly's component level (I assume this need to be fixed in SvelteMarkdown).