Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Softbreaks are not rendered onto a single line #1843

Closed
1 task done
Benjamin-Lee opened this issue Dec 26, 2019 · 4 comments
Closed
1 task done

Softbreaks are not rendered onto a single line #1843

Benjamin-Lee opened this issue Dec 26, 2019 · 4 comments

Comments

@Benjamin-Lee
Copy link

Description

#159 does not appear to be solved.

If your source looks like:

This is the first line.
This is the second line.

It is rendered as

This is the first line.
This is the second line.

when Markdown spec requires that it render as

This is the first line. This is the second line.

This breaks the use of semantic line breaks.

  • Can you reproduce the issue?

Steps to reproduce

Write two lines of text on separate lines.

Expected behavior:

https://spec.commonmark.org/0.29/#softbreak

Actual behavior:

Source code mode:

image

image

Link to an example: [optional]

Versions

  • Mark Text: v0.15.1
  • Operating system: MacOS 10.15.1
@Jocs
Copy link
Member

Jocs commented Dec 26, 2019

According to https://spec.commonmark.org/0.29/#softbreak (A softbreak may be rendered in HTML either as a line ending or as a space. The result will be the same in browsers. In the examples here, a line ending will be used.)

@Jocs Jocs closed this as completed Dec 26, 2019
@Jocs
Copy link
Member

Jocs commented Dec 26, 2019

Feel free to reopen this issue if you have any other options.

@Benjamin-Lee
Copy link
Author

@Jocs Would it be possible to make this an option? Rendering soft breaks as line endings makes Mark significantly less usable with SemBr Markdown files. For reference, Typora renders soft breaks as spaces.

@Jocs
Copy link
Member

Jocs commented Feb 6, 2020

For reference, Typora renders soft breaks as spaces.

I remember that Typora also treats soft line break and hard line break as new lines? Are you mean export html or PDF?

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

No branches or pull requests

2 participants