Skip to content

Commit f9b9527

Browse files
committed
test: update link export snapshots after merging origin/main
Main's link simplification (#2623) dropped the class/rel/target attrs on link marks, leaving only href. Regenerated the export snapshots that this branch added so they match the new mark shape.
1 parent 4e2fee2 commit f9b9527

18 files changed

Lines changed: 70 additions & 49 deletions

File tree

tests/src/unit/core/formatConversion/export/__snapshots__/blocknoteHTML/complex/document.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,12 @@ <h2 class="bn-inline-content">Section 1</h2>
2828
<strong>bold</strong>
2929
and
3030
<a
31-
target="_blank"
32-
rel="noopener noreferrer nofollow"
3331
href="https://example.com"
32+
target="_blank"
33+
rel="external"
34+
classname="bn-inline-content-section"
35+
data-inline-content-type="link"
36+
data-custom-attribute="true"
3437
>a link</a>
3538
.
3639
</p>

tests/src/unit/core/formatConversion/export/__snapshots__/blocknoteHTML/link/plainUrl.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44
<div class="bn-block-content" data-content-type="paragraph">
55
<p class="bn-inline-content">
66
<a
7-
target="_blank"
8-
rel="noopener noreferrer nofollow"
97
href="https://www.website.com"
8+
target="_blank"
9+
rel="external"
10+
classname="bn-inline-content-section"
11+
data-inline-content-type="link"
12+
data-custom-attribute="true"
1013
>https://www.website.com</a>
1114
</p>
1215
</div>

tests/src/unit/core/formatConversion/export/__snapshots__/blocknoteHTML/link/urlWithParens.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44
<div class="bn-block-content" data-content-type="paragraph">
55
<p class="bn-inline-content">
66
<a
7-
target="_blank"
8-
rel="noopener noreferrer nofollow"
97
href="https://en.wikipedia.org/wiki/Example_(disambiguation)"
8+
target="_blank"
9+
rel="external"
10+
classname="bn-inline-content-section"
11+
data-inline-content-type="link"
12+
data-custom-attribute="true"
1013
>Example</a>
1114
</p>
1215
</div>

tests/src/unit/core/formatConversion/export/__snapshots__/blocknoteHTML/link/withCode.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@
55
<p class="bn-inline-content">
66
See the
77
<a
8-
target="_blank"
9-
rel="noopener noreferrer nofollow"
108
href="https://example.com"
9+
target="_blank"
10+
rel="external"
11+
classname="bn-inline-content-section"
12+
data-inline-content-type="link"
13+
data-custom-attribute="true"
1114
>docs</a>
1215
for
1316
<code>config</code>

tests/src/unit/core/formatConversion/export/__snapshots__/blocknoteHTML/quote/withLink.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@
55
<blockquote class="bn-inline-content">
66
Quote with
77
<a
8-
target="_blank"
9-
rel="noopener noreferrer nofollow"
108
href="https://www.example.com"
9+
target="_blank"
10+
rel="external"
11+
classname="bn-inline-content-section"
12+
data-inline-content-type="link"
13+
data-custom-attribute="true"
1114
>a link</a>
1215
</blockquote>
1316
</div>

tests/src/unit/core/formatConversion/export/__snapshots__/blocknoteHTML/table/linksInCells.html

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,12 @@
1818
<p>
1919
Visit
2020
<a
21-
target="_blank"
22-
rel="noopener noreferrer nofollow"
2321
href="https://example.com"
22+
target="_blank"
23+
rel="external"
24+
classname="bn-inline-content-section"
25+
data-inline-content-type="link"
26+
data-custom-attribute="true"
2427
>Example</a>
2528
</p>
2629
</td>
@@ -35,9 +38,12 @@
3538
<td colspan="1" rowspan="1">
3639
<p>
3740
<a
38-
target="_blank"
39-
rel="noopener noreferrer nofollow"
4041
href="https://example2.com"
42+
target="_blank"
43+
rel="external"
44+
classname="bn-inline-content-section"
45+
data-inline-content-type="link"
46+
data-custom-attribute="true"
4147
>Link</a>
4248
</p>
4349
</td>

tests/src/unit/core/formatConversion/export/__snapshots__/html/complex/document.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@ <h2 data-level="2">Section 1</h2>
66
<strong>bold</strong>
77
and
88
<a
9-
target="_blank"
10-
rel="noopener noreferrer nofollow"
119
href="https://example.com"
10+
target="_blank"
11+
rel="external"
12+
classname="bn-inline-content-section"
13+
data-inline-content-type="link"
14+
data-custom-attribute="true"
1215
>a link</a>
1316
.
1417
</p>
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
<p>
22
<a
3-
target="_blank"
4-
rel="noopener noreferrer nofollow"
53
href="https://www.website.com"
4+
target="_blank"
5+
rel="external"
6+
classname="bn-inline-content-section"
7+
data-inline-content-type="link"
8+
data-custom-attribute="true"
69
>https://www.website.com</a>
710
</p>
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
<p>
22
<a
3-
target="_blank"
4-
rel="noopener noreferrer nofollow"
53
href="https://en.wikipedia.org/wiki/Example_(disambiguation)"
4+
target="_blank"
5+
rel="external"
6+
classname="bn-inline-content-section"
7+
data-inline-content-type="link"
8+
data-custom-attribute="true"
69
>Example</a>
710
</p>

tests/src/unit/core/formatConversion/export/__snapshots__/html/link/withCode.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
<p>
22
See the
33
<a
4-
target="_blank"
5-
rel="noopener noreferrer nofollow"
64
href="https://example.com"
5+
target="_blank"
6+
rel="external"
7+
classname="bn-inline-content-section"
8+
data-inline-content-type="link"
9+
data-custom-attribute="true"
710
>docs</a>
811
for
912
<code>config</code>

0 commit comments

Comments
 (0)