Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Pages markdown does not show a single newline #2811

Open
2e2a opened this issue Oct 24, 2016 · 3 comments
Open

Pages markdown does not show a single newline #2811

2e2a opened this issue Oct 24, 2016 · 3 comments
Labels

Comments

@2e2a
Copy link
Contributor

2e2a commented Oct 24, 2016

Markdown description created in SDI uses\r\n as newline.
This is not shown in the pages view.

Duplicate newlines introduce a new paragraph.

@2e2a
Copy link
Contributor Author

2e2a commented Oct 24, 2016

Adding a newline with spaces at the end of the line works.
The issue left, would be that the preview in SDI shows newlines that are not shown in the frontend.

@xi
Copy link
Collaborator

xi commented Oct 24, 2016

That is actually consitent with the spec (read the sections on both the hard and soft line breaks). A hard line break can be inserted with two spaces or a backslash.

The markdown parser used in the frontend has an option to enable github-style hard line breaks (breaks). I am not sure if we want that.

  • Pro: Consistent with editor in SDI.
  • Pro: Principle of least surprise
  • Contra: Tends to be misused (i.e. you should use proper paragraphs most of the time)

@2e2a
Copy link
Contributor Author

2e2a commented Oct 24, 2016

There is an option for the SDI markdown editor to disable showing single line breaks.
This would make it consistent with the frontend, if it also has support for the double space solution.

Contra: Tends to be misused (i.e. you should use proper paragraphs most of the time)

I agree to this point. We can keep the frontend as is and make the adjustments in SDI.

@2e2a 2e2a removed the frontend label Oct 24, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants