Skip to content

rich text emotes have incorrect linebreaks after the * Matthew #27896

@ara4n

Description

@ara4n

Steps to reproduce

  1. Type /me *does something*
  2. Note that it renders as:

Screenshot 2024-08-03 at 21 30 02

I've fixed this before, but it's regressed - the markdown renderer is putting a <p/> around the rich text causing a linebreak. It needs to be manually stripped off of emotes (or messages in general) when rendering to avoid the spurious linebreak.

Outcome

What did you expect?

No unexpected line breaks in rich text emotes.

What happened instead?

An unexpected linebreak after the name of the user.

Operating system

No response

Application version

Element Nightly version: 2024080301 Crypto version: Rust SDK 0.7.1 (c8c9d15), Vodozemac 0.6.0

How did you install the app?

No response

Homeserver

No response

Will you send logs?

negative ghostrider

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-EmotesO-UncommonMost users are unlikely to come across this or unexpected workflowS-MinorImpairs non-critical functionality or suitable workarounds existT-DefectX-Regression

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions