Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Room topics don't preserve newlines #23136

Open
hwittenborn opened this issue Aug 23, 2022 · 7 comments
Open

Room topics don't preserve newlines #23136

hwittenborn opened this issue Aug 23, 2022 · 7 comments
Labels
O-Occasional Affects or can be seen by some users regularly or most users rarely S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect

Comments

@hwittenborn
Copy link

Steps to reproduce

I have the following room topic set in one of my rooms (#makedeb-general:hunterwittenborn.com):

image

But when previewing it those newlines aren't preserved:

image

Outcome

N/A, see above.

Operating system

No response

Application version

Element version: 1.11.3 Olm version: 3.2.12

How did you install the app?

No response

Homeserver

No response

Will you send logs?

No

@dbkr dbkr added S-Minor Impairs non-critical functionality or suitable workarounds exist O-Occasional Affects or can be seen by some users regularly or most users rarely labels Aug 23, 2022
@aaronraimist
Copy link
Collaborator

Interestingly it does show new lines when feature_html_topic is enabled. But Element only sends the topic as HTML if there is some other kind of formatting in the topic such as a link or bold text. If the only formatting is new lines it gets sent as plain text and the newlines aren't respected.

@hwittenborn
Copy link
Author

Interestingly it does show new lines when feature_html_topic is enabled.

On that note, I've noticed that room topics don't support markdown. It's not completely related to this issue, but I think it'd be nice if they could.

@t3chguy
Copy link
Member

t3chguy commented Aug 27, 2022

That is what the feature mentioned above enables. It is currently in labs.

@shoqvalue
Copy link

shoqvalue commented Dec 12, 2022

I've just encountered this problem. I see nothing in Labs. I need to present 3 links in topics, and control their position, but I can't use A tags (so I can't shorten the links using link titles).

• I have discovered that Shift-Enter forces a new line.
• I don't know where "feature_html_topic" is found so I haven't tried this. I assume it's in /preferences somewhere, which I don't have access to. (Will ask when engineer he arrives :)
• It would be useful if "settings" dialog were draggable. It currently covers up the rendering of the space page, so one can't see it while editing the topic ( while in the settings page).
• Functioning markdown or raw HTML would be welcomed here.
2022-12-12_07h56_23

@t3chguy
Copy link
Member

t3chguy commented Dec 12, 2022

@shoqvalue you'd need to use a client with labs enabled, like develop.element.io

@shoqvalue
Copy link

@shoqvalue you'd need to use a client with labs enabled, like develop.element.io

OIC, thanks. So we'd need a whole new client installed just to see this in action?

@t3chguy
Copy link
Member

t3chguy commented Dec 12, 2022

Labs features are early access features which will eventually make it into mainline, once they are ready.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-Occasional Affects or can be seen by some users regularly or most users rarely S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect
Projects
None yet
Development

No branches or pull requests

5 participants