Open-Assistant
Open-Assistant copied to clipboard
Double newlines get deleted after sending the answer
Double new lines like
this one above, would be deleted in an answer. I'm not sure if it's a bug but I've wanted to use it to separate paragraphs / make maths more readable.
The answers are in markdown, just like on here. So I guess you'll need to do:
Something like this
<br>
for it to work
i.e.:
Something like this
for it to work
Though inserting HTML into answers might cause other issues, there's a very limited subset that are safe, and it'll probably come out encoded instead.
Looks like it's a rendering issue:
- Double newlines are saved to the DB, they just don't make it into the HTML after being passed through Markdown.
<br>doesn't get mangled, but it doesn't get rendered either:


{"text":"This is the prompt\n\n<br>\n\nThis comes after it"}
I'm thinking that if we're doing markdown, then we should probably support inline <br> tags and allow that.
This is just a matter of actually showing the newlines in the UI I think. They are definitely present in the DB
I think this was fixed in #1746.