nea / MarkdownViewerPlusPlus

A Notepad++ Plugin to view a Markdown file rendered on-the-fly
MIT License
1.18k stars 141 forks source link

Line feed - Carriage return #121

Open epikgit opened 4 years ago

epikgit commented 4 years ago

Viewer can't break the line on LF

If I have a line break with only a line feed char (LF) the viewer doesn't break my line. I'm using markdown for notes shared between Windows and Linux so I can have files with the LF terminator only instead of the more classic CR LF. In this case I'm forced to put tag
to break the line or a double LF.

image

Is it possible to change the viewer behaviour to recognize the LF as a normal line breaker?

Environment

ramisedhom commented 4 years ago

I have same issue, and actually tried to replace "Line Feed" with "Carriage return Line Feed" but still the viewer doesn't break the lines. I have to enter either LF or CR LF twice to make the viewer display the lines correctly.

Beercow commented 3 years ago

This is not a bug. That is how markdown works. You have to put a double space after for a line break. https://www.markdownguide.org/basic-syntax/#line-breaks