PAIR-code / llm-mediation-experiments

Platform for running experiments involving LLMs as online mediators.
Apache License 2.0
1 stars 3 forks source link

Fix HTML rendering bug in default experiment template #71

Open vivtsai opened 1 week ago

vivtsai commented 1 week ago

Right now, the default experiment/template (used for playtest) uses HTML, but Lit assumes that it is markdown, leading to HTML tags being visible.

Can we just fix this by changing the experiment/template to use Markdown?

vivtsai commented 1 week ago

I took a brief look. It looks like the HTML tags are not recognized by Lit because the content string includes the entity instead of the tag, e.g., &#182; instead of <p>. Not sure if there's a way to fix this? (I've rendered HTML and Markdown-to-HTML in Lit before without issue)