New line doesn't appear in preview section.
As picture shown below, notice the line "create database ..." and "grant all ...".

By default, everything you type in will be consider as markdown. Thus no newline will be preserved. However, if you want to keep the newlines, you can wrap the content inside a codeblock.
create database 'library_production';
grant all privileges on library_production.*;
I tested a few online markdown editors like:
And all of them preserve new line, even on this Github md editor. Can you check on that?
Well, I know what you are talking about. It's best to wrap the content in a codeblock. But if you prefer to keep the newline, you can go to setting and add this piece of code to the custom CSS:
p {
white-space: pre;
}
Thank you very much for the help. I think the below piece of custom CSS code suits me most.
Hope it's good enough to be a default setting.
p {
white-space: pre-wrap;
}
For users migrating from Boostnote Legacy to BoostNote.next:
The solution mentioned above by @Trieste96 will act just like the _'Render newlines in Markdown paragraphs as \

Most helpful comment
Thank you very much for the help. I think the below piece of custom CSS code suits me most.
Hope it's good enough to be a default setting.