Skip to content

Commit

Permalink
respect newlines in text blocks
Browse files Browse the repository at this point in the history
fixes #16
  • Loading branch information
AprilSylph committed Jan 7, 2022
1 parent 1fe73cd commit 4694b16
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib/npf.css
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@
padding-right: 0;
}

[data-block="text"] {
white-space: pre-line;
overflow-wrap: break-word;
}

[data-block="text"]:empty {
display: none;
}
Expand Down

0 comments on commit 4694b16

Please sign in to comment.