2022-02-22 11:46:34 +00:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2022-05-03 00:26:37 +00:00
|
|
|
exports[`<TextualBody /> renders formatted m.text correctly linkification is not applied to code blocks 1`] = `
|
2022-12-29 16:21:00 +00:00
|
|
|
<span
|
|
|
|
class="mx_EventTile_body markdown-body"
|
|
|
|
dir="auto"
|
|
|
|
>
|
|
|
|
<p>
|
|
|
|
Visit
|
|
|
|
<code>
|
|
|
|
https://matrix.org/
|
|
|
|
</code>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
class="mx_EventTile_pre_container"
|
|
|
|
>
|
|
|
|
<pre
|
|
|
|
class="mx_EventTile_collapsedCodeBlock"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="mx_EventTile_lineNumbers"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
1
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<code>
|
|
|
|
https://matrix.org/
|
|
|
|
|
|
|
|
</code>
|
|
|
|
<span />
|
|
|
|
</pre>
|
|
|
|
<span
|
|
|
|
class="mx_EventTile_button mx_EventTile_copyButton "
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</span>
|
2022-05-03 00:26:37 +00:00
|
|
|
`;
|
|
|
|
|
2023-03-16 14:01:09 +00:00
|
|
|
exports[`<TextualBody /> renders formatted m.text correctly pills appear for an MXID permalink 1`] = `
|
|
|
|
<span
|
|
|
|
class="mx_EventTile_body markdown-body"
|
|
|
|
dir="auto"
|
|
|
|
>
|
|
|
|
Chat with
|
|
|
|
<span>
|
|
|
|
<bdi>
|
|
|
|
<a
|
|
|
|
class="mx_Pill mx_UserPill"
|
|
|
|
href="https://matrix.to/#/@user:example.com"
|
|
|
|
>
|
|
|
|
<img
|
|
|
|
alt=""
|
|
|
|
aria-hidden="true"
|
|
|
|
class="mx_BaseAvatar mx_BaseAvatar_image"
|
|
|
|
data-testid="avatar-img"
|
|
|
|
src="mxc://avatar.url/image.png"
|
|
|
|
style="width: 16px; height: 16px;"
|
|
|
|
/>
|
|
|
|
<span
|
|
|
|
class="mx_Pill_linkText"
|
|
|
|
>
|
|
|
|
Member
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</bdi>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
`;
|
|
|
|
|
2022-02-22 11:46:34 +00:00
|
|
|
exports[`<TextualBody /> renders formatted m.text correctly pills do not appear in code blocks 1`] = `
|
2022-12-29 16:21:00 +00:00
|
|
|
<span
|
|
|
|
class="mx_EventTile_body markdown-body"
|
|
|
|
dir="auto"
|
|
|
|
>
|
|
|
|
<p>
|
|
|
|
<code>
|
|
|
|
@room
|
|
|
|
</code>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
class="mx_EventTile_pre_container"
|
|
|
|
>
|
|
|
|
<pre
|
|
|
|
class="mx_EventTile_collapsedCodeBlock"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="mx_EventTile_lineNumbers"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
1
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<code>
|
|
|
|
@room
|
|
|
|
|
|
|
|
</code>
|
|
|
|
<span />
|
|
|
|
</pre>
|
|
|
|
<span
|
|
|
|
class="mx_EventTile_button mx_EventTile_copyButton "
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</span>
|
2022-02-22 11:46:34 +00:00
|
|
|
`;
|
2022-05-06 21:26:32 +00:00
|
|
|
|
2022-12-29 16:21:00 +00:00
|
|
|
exports[`<TextualBody /> renders formatted m.text correctly pills get injected correctly into the DOM 1`] = `
|
|
|
|
<span
|
|
|
|
class="mx_EventTile_body markdown-body"
|
|
|
|
dir="auto"
|
|
|
|
>
|
|
|
|
Hey
|
|
|
|
<span>
|
|
|
|
<bdi>
|
|
|
|
<a
|
|
|
|
class="mx_Pill mx_UserPill"
|
2023-03-08 12:06:50 +00:00
|
|
|
href="https://matrix.to/#/@user:server"
|
2022-12-29 16:21:00 +00:00
|
|
|
>
|
|
|
|
<img
|
|
|
|
alt=""
|
|
|
|
aria-hidden="true"
|
|
|
|
class="mx_BaseAvatar mx_BaseAvatar_image"
|
|
|
|
data-testid="avatar-img"
|
|
|
|
src="mxc://avatar.url/image.png"
|
|
|
|
style="width: 16px; height: 16px;"
|
|
|
|
/>
|
|
|
|
<span
|
|
|
|
class="mx_Pill_linkText"
|
|
|
|
>
|
|
|
|
Member
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</bdi>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
`;
|