The fact that this parameter is named “unsafe” means that it’s bad and there are ways to “do it properly”.
A newline in Markdown is created by “2 spaces at the end of the line and a single newline”.
sample text__
sample text
where the _ are spaces.
Now, many text editors remove spaces at the end of the line. Which is bad for markdown files Some text editors allow you to remove the “remove trailing whitespace on lines” feature for markdown files which is (IMHO) an indicator of a “good” editor for your markdown use.