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

multi-paragraph reacts weirdly after escaping all markdown #17933

Closed
ShadowJonathan opened this issue Jul 10, 2021 · 2 comments
Closed

multi-paragraph reacts weirdly after escaping all markdown #17933

ShadowJonathan opened this issue Jul 10, 2021 · 2 comments
Labels
A-Composer 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 Z-Upstream

Comments

@ShadowJonathan
Copy link
Contributor

ShadowJonathan commented Jul 10, 2021

Description

The composer emits weird formatting if - on multiparagraph - you escape all markdown.

Steps to reproduce

Send this exact markdown in a room;

test

\*test*

The event will be "formatted_body": "test\n\n*test*". (1)

I think that paragraph stripping here is especially aggressive, as the following works and produces correct results;

test

test

-> "body": "test\n\ntest" (2)

test

*test*

-> "formatted_body": "<p>test</p>\n<p><em>test</em></p>\n" (3)

image

(Ordering in this screenshot is 2 -> 1 -> 3)

Version information

  • Platform: desktop

  • OS: Linux PopOS 21.04

  • Version: 1.7.32

@SimonBrandner SimonBrandner added 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 labels Aug 28, 2021
@ShadowJonathan
Copy link
Contributor Author

This sorta seems to be a duplicate of #15320, actually

@SimonBrandner
Copy link
Contributor

Yeah closing as a dupe of that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Composer 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 Z-Upstream
Projects
None yet
Development

No branches or pull requests

2 participants