atom/markdown-preview

Markdown preview doesn't show a hard line break for lines ending in a backslash

Opened this issue · 1 comments

Prerequisites

Description

Markdown preview doesn't show a hard line break for lines ending in \.

Steps to Reproduce

  1. Create a new .md file
  2. Open up markdown preview with ctrl-shift-m
  3. Make sure the preview is in "GitHub Markdown mode"
  4. Paste this gist into your .md file.
  5. Look at the markdown preview

Expected behavior: According to the GFM spec, ending a line with \ is supposed to result in a hard line break. I'd expect to see "hello world", with a line break between the two words, twice. You can see the expected results right here as well:

hello
world

Actual behavior: The line ending in two spaces gets a hard break at the end, but the line ending with \ just shows \ in the middle of the line:

screen shot 2018-02-09 at 13 08 27

Reproduces how often: 100%

Versions

Atom : 1.23.3
Electron: 1.6.15
Chrome : 56.0.2924.87
Node : 7.4.0
markdown-preview: 0.159.18

A possible solution might be to use markdown-preview-plus until this is resolved.