deck icon indicating copy to clipboard operation
deck copied to clipboard

Line break ignored in Card Description

Open knieskopp opened this issue 4 years ago • 2 comments

Line breaks in card description are ignored once editing is finished.

Steps to reproduce:

  1. create card
  2. add description with line breaks
  3. click outside of card to finish edit
  4. reopen card

Expected behavior: Line breaks showing up in description preview

grafik

grafik

knieskopp avatar Nov 09 '22 09:11 knieskopp

Hi @knieskopp . As far as I know, this is not a bug, it is a known function of the markdown language, which is used for formatting the text of the deck card description.

To add a line break, you have to add at least two spaces (by space bar) at the end of a line. Then, the line break works fine. I have tried this with my installation.

ma651851384 avatar Nov 16 '22 09:11 ma651851384

Yes, this is the expected behaviour and the markdown spec is also referenced in https://deck.readthedocs.io/en/latest/Markdown/

However this might of course be confusing. This will improve once we switch to a rich text editor as planned with #1561

juliusknorr avatar Nov 16 '22 14:11 juliusknorr