Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

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

Open
1 task done
swtaarrs opened this issue Feb 9, 2018 · 1 comment
Open
1 task done

Comments

@swtaarrs
Copy link

swtaarrs commented Feb 9, 2018

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

@UrsaDK
Copy link

UrsaDK commented Jun 27, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants