MarkdownViewerPlusPlus icon indicating copy to clipboard operation
MarkdownViewerPlusPlus copied to clipboard

Line feed - Carriage return

Open epikgit opened this issue 5 years ago • 2 comments

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

  • Notepad++ 7.8.2 (x86)
  • MarkdownViewer++ 0.8.2
  • Windows 10 (x64)

epikgit avatar Dec 13 '19 09:12 epikgit

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.

ramisedhom avatar Jan 04 '20 00:01 ramisedhom

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

Beercow avatar Mar 25 '21 02:03 Beercow