Joplin: Line breaks don't nehave according to the markdown "standard"

Created on 10 Apr 2019  路  9Comments  路  Source: laurent22/joplin

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

Most helpful comment

/ref #1408

All 9 comments

Joplin actually supports both markdown and normal line breaks.

Is there an option for it?

No, by default they both work.

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

@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.

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 :)

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.

/ref #1408

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jmcastagnetto picture jmcastagnetto  路  3Comments

okoetter picture okoetter  路  3Comments

GingerPapa picture GingerPapa  路  3Comments

v-marinkov picture v-marinkov  路  3Comments

christianlupus picture christianlupus  路  3Comments