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

Line breaks don't nehave according to the markdown "standard" #1406

Closed
Nebucatnetzer opened this issue Apr 10, 2019 · 9 comments
Closed

Line breaks don't nehave according to the markdown "standard" #1406

Nebucatnetzer opened this issue Apr 10, 2019 · 9 comments

Comments

@Nebucatnetzer
Copy link

Nebucatnetzer commented Apr 10, 2019

Operating system

I have tested it on these plattforms.

  • Linux
  • Android
  • iOS

Application

I have tested these applications.

  • Desktop
  • Mobile

I tried the external editor feature today.
My editor is setup so that it breaks lines after 80 characters.
After I switched back to Joplin I noticed that it interprets all the line breaks like the editor does.
However all the markdown implementations I've used ignore those and only insert a line break with additional markup (two spaces,\, <br/>).

https://gist.github.com/shaunlebron/746476e6e7a4d698b373

https://markdown-it.github.io/#md3=%7B%22source%22%3A%22This%20is%20a%20long%20text%20which%20contains%20linebreaks%5Cnhowever%20they%20get%20ignored%20by%20markdown.%22%2C%22defaults%22%3A%7B%22html%22%3Afalse%2C%22xhtmlOut%22%3Afalse%2C%22breaks%22%3Afalse%2C%22langPrefix%22%3A%22language-%22%2C%22linkify%22%3Atrue%2C%22typographer%22%3Atrue%2C%22_highlight%22%3Atrue%2C%22_strict%22%3Afalse%2C%22_view%22%3A%22html%22%7D%7D

@Outi-s
Copy link

Outi-s commented Apr 10, 2019

Joplin actually supports both markdown and normal line breaks.

@Nebucatnetzer
Copy link
Author

Is there an option for it?

@Outi-s
Copy link

Outi-s commented Apr 10, 2019

No, by default they both work.

@Nebucatnetzer
Copy link
Author

I see, that's exactly what I meant with my issue.
The normal line breaks shouldn't work in a markdown editor.

@tessus
Copy link
Collaborator

tessus commented Apr 10, 2019

@Nebucatnetzer no, currently Joplin does not support soft line breaks. I am working on a PR to add that option. I was just a bit busy the last few days, but I hope I will be able to do that soon.
Also, no promises that it will be merged, because I don't have a definitive ok from Laurent yet.

@Nebucatnetzer
Copy link
Author

Nebucatnetzer commented Apr 10, 2019

That's good to know.
It would already be nice if it was an option we could toggle.
Edit:
And no need to rush it good things take time :)

@tessus
Copy link
Collaborator

tessus commented Apr 10, 2019

Yep, the PR adds a check box (in settings) to use soft breaks. The default behavior won't change, but you will be able to use soft breaks, if you really like that behavior better.

@tessus
Copy link
Collaborator

tessus commented Apr 14, 2019

/ref #1408

@tessus
Copy link
Collaborator

tessus commented Apr 21, 2019

added in 12ebf44

@tessus tessus closed this as completed Apr 21, 2019
@lock lock bot locked and limited conversation to collaborators Oct 15, 2019
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

3 participants