fix selector so maths support doesn't mangle divs (#12433)
This commit is contained in:
parent
193237f204
commit
04a2191cad
3 changed files with 13 additions and 1 deletions
|
@ -166,6 +166,16 @@ describe("bodyToHtml", () => {
|
|||
});
|
||||
expect(html).toMatchSnapshot();
|
||||
});
|
||||
|
||||
it("should not mangle divs", () => {
|
||||
const html = getHtml({
|
||||
body: "hello world",
|
||||
msgtype: "m.text",
|
||||
formatted_body: "<p>hello</p><div>world</div>",
|
||||
format: "org.matrix.custom.html",
|
||||
});
|
||||
expect(html).toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue