Skip to content

/spoiler command does not convert to html #21185

@HarHarLinks

Description

@HarHarLinks

Steps to reproduce

send a message with /spoiler

applies to

  • any kind of markdown
  • newlines

Outcome

What did you expect?

proper html in the formatted_body

What happened instead?

spoilers are implemented with span with custom data property in formatted_body, but spoiler contents are not converted as they usually are before being put into formatted_body.
"formatted_body": "<span data-mx-spoiler>spoilery text</span>"

Operating system

arch

Application version

Element Nightly version: 2022022301 Olm version: 3.2.8

How did you install the app?

aur

Homeserver

1.52

Will you send logs?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-Room-ViewA-Slash-CommandsHacktoberfestIssues which are suitable for Hacktoberfest PRs: https://hacktoberfest.digitalocean.com/Help WantedExtra attention is neededO-UncommonMost users are unlikely to come across this or unexpected workflowS-MinorImpairs non-critical functionality or suitable workarounds existT-Defectgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions