You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
links are truncated due to GraffitiContentTruncate, which chops off closing brackets and other markdown syntax. Links are typically much shorter than the syntax so the truncation is not really serving its purpose here.
There are multiple issues here:
markdown graffiti truncation is simply a broken concept. though i don't think it's common enough to care about in this generic sense
Markdown links (specifically [caption](very_long_url_here)) should be treated differently than normal text graffiti. Possibly some hook into markdown-it, or something really gritty like measure text in parenthesis and increase truncation limit to include that.
An even simpler and quicker fix is to disable truncation for certain conditions:
when it's placed by an admin or mod
when it's pinned (so when the creator identity somehow disappears, it retains its no-truncation behavior)
The text was updated successfully, but these errors were encountered:
see:
digifujam/source/DFclient/ui/graffiti.js
Line 351 in 7dece20
links are truncated due to
GraffitiContentTruncate
, which chops off closing brackets and other markdown syntax. Links are typically much shorter than the syntax so the truncation is not really serving its purpose here.There are multiple issues here:
[caption](very_long_url_here)
) should be treated differently than normal text graffiti. Possibly some hook into markdown-it, or something really gritty like measure text in parenthesis and increase truncation limit to include that.An even simpler and quicker fix is to disable truncation for certain conditions:
The text was updated successfully, but these errors were encountered: