aws / mynah-ui

https://aws.github.io/mynah-ui/
Apache License 2.0
13 stars 11 forks source link

Nested list parsing doesn't work in Mynah UI #97

Closed tverney closed 3 weeks ago

tverney commented 1 month ago

Problem

We've seen responses from LLM being answered in a wrong level when nested (see screenshots).

image (1) Screenshot 2024-08-14 at 1 21 36 PM

Steps to reproduce the issue

If I copy the file for nested examples in Mynah UI, add as an input response, it doesn't format/work as expected.

Screenshot 2024-08-14 at 1 42 18 PM Screenshot 2024-08-14 at 1 42 48 PM

Expected behaviour

It should parse it as expected in Markdown spec: https://ref.coddy.tech/markdown/markdown-nested-lists

System details

volodkevych commented 3 weeks ago

Thanks for reporting this.

Formatting is also broken for other functionality. For example, if I "Send to prompt" selected code block, code indentation is lost:

Screenshot 2024-08-21 at 10 19 16

The issue was caused by this change: https://github.com/aws/mynah-ui/pull/72/files.