Boostnote.next: Newline in Preview section

Created on 14 Jul 2020  路  5Comments  路  Source: BoostIO/BoostNote.next

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

image

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.

p {
  white-space: pre-wrap;
} 

All 5 comments

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 \

image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Rokt33r picture Rokt33r  路  5Comments

stevenwchien picture stevenwchien  路  4Comments

btstw picture btstw  路  4Comments

Username77177 picture Username77177  路  4Comments

Rokt33r picture Rokt33r  路  3Comments