joplin icon indicating copy to clipboard operation
joplin copied to clipboard

Hard/Soft Breaks rendering in Joplin Server

Open jabums opened this issue 3 years ago • 2 comments

Unfortunately I might have run into an issue with the rendering of linke breaks in markdown. Joplin desktop app uses hard breaks by default. I am using the Markdown Editor in dual panel view. When I hit return to break a text line it will be rendered as
in the preview on the right. When I share that note to make it accessible via Joplin Server the lines will not break as intended.

I can fix the issue by using double space after each textline I want to break (complies with hard break markdown syntax), although I consider this a bad usability. Preview of line breaks in Desktop and rendered document on the http server should be the same. (I for one would prefer hard breaks on the web version as well)

Environment

Joplin version: Joplin 2.5.12 Platform: macOS / Joplin Server via Docker

Steps to reproduce

  1. Create Note in Joplin Desktop, Markdown Editor
  2. Insert return into text (Preview will show line break)
  3. Publish Note via Joplin Server
  4. Line will not break in published HTML

Describe what you expected to happen

Joplin Standard Hard Break should be used by default on server output as well.

jabums avatar Dec 13 '21 20:12 jabums