mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-15 19:01:58 +03:00
1c70696b10
* Don't linkify code blocks Signed-off-by: Robin Townsend <robin@robin.town> * Put the linkify ignoreTags option in the right place Signed-off-by: Robin Townsend <robin@robin.town> * Add code to list of ignored linkification tags as well Signed-off-by: Robin Townsend <robin@robin.town> * Test that code blocks skip linkification Signed-off-by: Robin Townsend <robin@robin.town> * Move test to the right spot Signed-off-by: Robin Townsend <robin@robin.town> * Use a snapshot instead for test Signed-off-by: Robin Townsend <robin@robin.town>
15 lines
1 KiB
Text
15 lines
1 KiB
Text
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`<TextualBody /> renders formatted m.text correctly linkification is not applied to code blocks 1`] = `
|
|
"<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></span></pre><span class=\\"mx_EventTile_button mx_EventTile_copyButton \\"></span></div>
|
|
</span>"
|
|
`;
|
|
|
|
exports[`<TextualBody /> renders formatted m.text correctly pills do not appear in code blocks 1`] = `
|
|
"<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></span></pre><span class=\\"mx_EventTile_button mx_EventTile_copyButton \\"></span></div>
|
|
</span>"
|
|
`;
|