deck icon indicating copy to clipboard operation
deck copied to clipboard

Long links in cards description are broken by line breaks

Open wwwindisch opened this issue 9 years ago • 8 comments

Expected behaviour Links in the card description are automatically converted to hyperlinks an become clickable.

Actual behaviour A line break is created automatically, if a link is too long for one line. Problem: Only the first line is converted to a hyperlink (which then points to an incomplete URL).

Screenshot grafik

wwwindisch avatar May 09 '17 13:05 wwwindisch

@wwwindisch Right, that should not happen.

For fixing, this might be an issue with markdown-it adding breaks and markdown-it-linkify.

juliusknorr avatar May 09 '17 15:05 juliusknorr

Can confirm this issue but not as title suggest . The problem is not long URL's , the problem is links that has the parenthesis character ) .

2017-05-10_072819

As such - @juliushaertl is defiantly right and This issue should be labeled as Upstream and handled at the source of said library / script . I already allowed myself to open an issue there

Note that for my understanding , as per RFC 3896 this character is to be considered VALID and SAFE for URI . ( see also here and here )

x9t9 avatar May 09 '17 23:05 x9t9

@juliushaertl maybe markdown-it-link-target is a bit out of date, found markdown-it-link-attributes which seems to be a bit newer than that However bower can't find it for me

moritz31 avatar May 10 '17 06:05 moritz31

@x9t9 Thanks for clarifying the issue...and sorry that I didn't investigate it more in detail.

wwwindisch avatar May 10 '17 07:05 wwwindisch

Upstream says that is not a bug :) They basically recommend using "<" and ">" to wrap links - that should always work.

pixelipo avatar May 10 '17 08:05 pixelipo

Thanks! Good to know...works for me. From the user's point of view this solution is not really intuitive... Therefore, it should be documented somewhere (maybe together with basic formatting examples like **bold**), e.g. on a little "Help"-page in the Deck-Wiki?

wwwindisch avatar May 10 '17 08:05 wwwindisch

Ok, thanks @x9t9 for investigating. I think we should have some help on the markdown as well as having a link to it somewhere near the description field for users who are not aware of markdown. Anyone wants to take care of that?

juliusknorr avatar May 10 '17 09:05 juliusknorr

Closed as this issue is not directly related to card but from upstrem, which will not fix . Users will be informed of the issue following implementation of #129

x9t9 avatar May 16 '17 11:05 x9t9