Currently when I link something with line breaks, like poetry, the text in the link preview appears all on one line in applications like Discord. Is there a way to make sure link previews show line breaks?
Can you clarify how you are doing this. What do you mean "when I link something with line breaks". Do you mean enter text with line breaks in the Body of a page? If so, are you using Filtered Text and CKEditor (which are the default for Body)? I'm trying to enter text with line breaks in the Body using "Filtered Text" and CKEditor. When I click Preview it shows correctly.
Sorry, I really don't know how you are making Backdrop show a link preview like the one you posted - never done that before. Is this in a textarea field? Or what kind of field?
The module is a port from the Drupal module of the same name and the name is not normally changed.
Looking at the Drupal module there is this issue:
https://www.drupal.org/project/...
Posted1 hour 4 min ago by Martin Price | System Horizons Ltd (yorkshirepudding) on:
The README says:
This module enables to use tokens for field default values in simple field types like text or select list. That's a convenient way to pre-populate fields when...
Posted1 hour 22 min ago by Martin Price | System Horizons Ltd (yorkshirepudding) on:
The problem seems to be related with Field Default Token module.
The coder put alot of comments in field_default_token_form_field_ui_field_edit_form_alter function saying the validation...
Right. That's a bit more involved; I don't have time to reproduce that at the moment; perhaps someone else will.
I'm sure it will be possible to port the module to Backdrop. You could put...
Posted2 hours 47 min ago by Martin Price | System Horizons Ltd (yorkshirepudding) on:
Comments
Hi CurrentBias,
Can you clarify how you are doing this. What do you mean "when I link something with line breaks". Do you mean enter text with line breaks in the Body of a page? If so, are you using Filtered Text and CKEditor (which are the default for Body)? I'm trying to enter text with line breaks in the Body using "Filtered Text" and CKEditor. When I click Preview it shows correctly.
Thanks for the reply! To clarify, I mean the opengraph link preview that appears when a link is posted somewhere like Discord -- here's an example:
The post itself has line breaks, but the preview does not -- I'm wondering how to make the preview display the line breaks as well
Sorry, I really don't know how you are making Backdrop show a link preview like the one you posted - never done that before. Is this in a textarea field? Or what kind of field?
Does it display the same as a link preview in other platforms?
Perhaps it is just discord discarding the markup?