tvst / st-annotated-text

A simple component to display annotated text in Streamlit apps.
Apache License 2.0
523 stars 41 forks source link

Error parsing Markdown or HTML in this string #24

Open elozano98 opened 2 years ago

elozano98 commented 2 years ago

When trying to use annotated_text with a text that has a line break it raises the following Error:

Error parsing Markdown or HTML in this string

This only happens on a huggingface Space, locally works as expected.

You can find the Space and the code here.

In case you want to reproduce the error, you can use the following text on the huggingface Space:

Headline:

Ukraine tensions: Russia invasion could begin any day, US warns

Content:

Russia has the troops in place to invade Ukraine "at any time" and American citizens should leave within the next 48 hours, the US has warned.

An invasion could start with aerial bombing that would make departures difficult and endanger civilians, the White House said on Friday.

Thanks!