Skip to content

Some Markdown after HTML tags are not rendered #5319

@compulim

Description

@compulim

Is it an issue related to Adaptive Cards?

No

Is this an accessibility issue?

No

What version of Web Chat are you using?

Development build

Which distribution are you using Web Chat from?

Unrelated

Which hosting environment does this issue primarily affect?

Others or unrelated

Which browsers and platforms do the issue happened?

Others or unrelated

Which area does this issue affect?

Chat history

Which theme pack does this issue affect?

I did not test it on other theme packs

What is the public URL for the website?

No response

Please describe the bug

The following Markdown is not rendered properly:

Line 1

<br />
Line 2

From CommonMark Dingus, it would output:

<p>Line 1</p>
<br />
Line 2

Note: "Line 2" is a text node and is not wrapped in <p>. This is expected.

Do you see any errors in console log?

No.

How to reproduce the issue?

Bot send the following Markdown message.

Line 1

<br />
Line 2

What do you expect?

It renders with both "Line 1" and "Line 2".

<p>Line 1</p><br />Line 2

What actually happened?

It renders without "Line 2".

<p>Line 1</p><br />

Do you have any screenshots or recordings to repro the issue?

image

Adaptive Card JSON

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

bugIndicates an unexpected problem or an unintended behavior.icmLinked from IcM

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions