Skip to content

Commit 7002a5e

Browse files
committed
更新快照文件,添加脚注定义的链接文本和样式,确保在Markdown编辑器中正确渲染
1 parent fb86eb0 commit 7002a5e

File tree

6 files changed

+267
-7
lines changed

6 files changed

+267
-7
lines changed

tests/demo/__snapshots__/src/MarkdownEditor/demos/FncTooltip.snap

+35-1
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,41 @@
461461
<a
462462
href="#md-editor-ref1"
463463
style="color: rgb(22, 119, 255); text-decoration: none; margin-left: 5px; cursor: pointer;"
464-
/>
464+
>
465+
<span
466+
data-slate-node="text"
467+
>
468+
<span
469+
aria-describedby="test-id"
470+
class=" "
471+
data-be="link"
472+
data-slate-inline="true"
473+
data-slate-leaf="true"
474+
data-url="https://www.tradesmax.com/component/k2/item/22075-microsoft"
475+
draggable="false"
476+
id="https://www.tradesmax.com/component/k2/item/22075-microsoft"
477+
style="text-decoration: underline; text-decoration-color: #1677ff; text-underline-offset: 4px; color: rgb(22, 119, 255); cursor: pointer;"
478+
>
479+
<span
480+
contenteditable="false"
481+
style="font-size: 0px; line-height: 0; display: inline-block;"
482+
>
483+
 
484+
</span>
485+
<span
486+
data-slate-string="true"
487+
>
488+
微软(MSFT)股价陷低谷 ,AI 投入何时兑现增加承诺 ? - 美股投资网
489+
</span>
490+
<span
491+
contenteditable="false"
492+
style="font-size: 0px; line-height: 0; display: inline-block;"
493+
>
494+
 
495+
</span>
496+
</span>
497+
</span>
498+
</a>
465499
</div>
466500
<div
467501
class="ant-md-editor-drag-el empty"

tests/demo/__snapshots__/src/MarkdownEditor/demos/footnoteReference.snap

+40-2
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,26 @@
206206
<a
207207
href="#md-editor-refdoc_0"
208208
style="color: rgb(22, 119, 255); text-decoration: none; margin-left: 5px; cursor: pointer;"
209-
/>
209+
>
210+
<span
211+
data-slate-node="text"
212+
>
213+
<span
214+
class=" "
215+
data-be="text"
216+
data-slate-leaf="true"
217+
draggable="false"
218+
>
219+
<span
220+
data-slate-length="0"
221+
data-slate-zero-width="n"
222+
>
223+

224+
<br />
225+
</span>
226+
</span>
227+
</span>
228+
</a>
210229
</div>
211230
<div
212231
class="ant-md-editor-drag-el empty"
@@ -219,7 +238,26 @@
219238
<a
220239
href="#md-editor-refdoc_1"
221240
style="color: rgb(22, 119, 255); text-decoration: none; margin-left: 5px; cursor: pointer;"
222-
/>
241+
>
242+
<span
243+
data-slate-node="text"
244+
>
245+
<span
246+
class=" "
247+
data-be="text"
248+
data-slate-leaf="true"
249+
draggable="false"
250+
>
251+
<span
252+
data-slate-length="0"
253+
data-slate-zero-width="n"
254+
>
255+

256+
<br />
257+
</span>
258+
</span>
259+
</span>
260+
</a>
223261
</div>
224262
<div
225263
class="ant-md-editor-drag-el empty"

tests/demo/__snapshots__/src/MarkdownEditor/demos/min-render.snap

+36-2
Original file line numberDiff line numberDiff line change
@@ -9701,7 +9701,24 @@
97019701
<a
97029702
href="#md-editor-ref1"
97039703
style="color: rgb(22, 119, 255); text-decoration: none; margin-left: 5px; cursor: pointer;"
9704-
/>
9704+
>
9705+
<span
9706+
data-slate-node="text"
9707+
>
9708+
<span
9709+
class=" "
9710+
data-be="text"
9711+
data-slate-leaf="true"
9712+
draggable="false"
9713+
>
9714+
<span
9715+
data-slate-string="true"
9716+
>
9717+
remarkjs.md
9718+
</span>
9719+
</span>
9720+
</span>
9721+
</a>
97059722
</div>
97069723
<div
97079724
class="ant-md-editor-drag-el"
@@ -9714,7 +9731,24 @@
97149731
<a
97159732
href="#md-editor-ref2"
97169733
style="color: rgb(22, 119, 255); text-decoration: none; margin-left: 5px; cursor: pointer;"
9717-
/>
9734+
>
9735+
<span
9736+
data-slate-node="text"
9737+
>
9738+
<span
9739+
class=" "
9740+
data-be="text"
9741+
data-slate-leaf="true"
9742+
draggable="false"
9743+
>
9744+
<span
9745+
data-slate-string="true"
9746+
>
9747+
remarkjs.md
9748+
</span>
9749+
</span>
9750+
</span>
9751+
</a>
97189752
</div>
97199753
</div>
97209754
</div>

tests/demo/__snapshots__/src/MarkdownEditor/demos/min.snap

+36-2
Original file line numberDiff line numberDiff line change
@@ -6861,7 +6861,24 @@
68616861
<a
68626862
href="#md-editor-ref1"
68636863
style="color: rgb(22, 119, 255); text-decoration: none; margin-left: 5px; cursor: pointer;"
6864-
/>
6864+
>
6865+
<span
6866+
data-slate-node="text"
6867+
>
6868+
<span
6869+
class=" "
6870+
data-be="text"
6871+
data-slate-leaf="true"
6872+
draggable="false"
6873+
>
6874+
<span
6875+
data-slate-string="true"
6876+
>
6877+
remarkjs.md
6878+
</span>
6879+
</span>
6880+
</span>
6881+
</a>
68656882
</div>
68666883
<div
68676884
class="ant-md-editor-drag-el"
@@ -6874,7 +6891,24 @@
68746891
<a
68756892
href="#md-editor-ref2"
68766893
style="color: rgb(22, 119, 255); text-decoration: none; margin-left: 5px; cursor: pointer;"
6877-
/>
6894+
>
6895+
<span
6896+
data-slate-node="text"
6897+
>
6898+
<span
6899+
class=" "
6900+
data-be="text"
6901+
data-slate-leaf="true"
6902+
draggable="false"
6903+
>
6904+
<span
6905+
data-slate-string="true"
6906+
>
6907+
remarkjs.md
6908+
</span>
6909+
</span>
6910+
</span>
6911+
</a>
68786912
</div>
68796913
</div>
68806914
<div>

tests/demo/__snapshots__/src/MarkdownEditor/demos/preview.snap

+60
Original file line numberDiff line numberDiff line change
@@ -10934,6 +10934,66 @@ while i &lt; len(arr):
1093410934
</span>
1093510935
</span>
1093610936
</div>
10937+
<div
10938+
class="ant-md-editor-drag-el"
10939+
contenteditable="false"
10940+
data-be="footnoteDefinition"
10941+
data-slate-node="element"
10942+
style="font-size: 12px; margin: 5px 0px; display: flex;"
10943+
>
10944+
1.
10945+
<a
10946+
href="#md-editor-ref1"
10947+
style="color: rgb(22, 119, 255); text-decoration: none; margin-left: 5px; cursor: pointer;"
10948+
>
10949+
<span
10950+
data-slate-node="text"
10951+
>
10952+
<span
10953+
class=" "
10954+
data-be="text"
10955+
data-slate-leaf="true"
10956+
draggable="false"
10957+
>
10958+
<span
10959+
data-slate-string="true"
10960+
>
10961+
remarkjs.md
10962+
</span>
10963+
</span>
10964+
</span>
10965+
</a>
10966+
</div>
10967+
<div
10968+
class="ant-md-editor-drag-el"
10969+
contenteditable="false"
10970+
data-be="footnoteDefinition"
10971+
data-slate-node="element"
10972+
style="font-size: 12px; margin: 5px 0px; display: flex;"
10973+
>
10974+
2.
10975+
<a
10976+
href="#md-editor-ref2"
10977+
style="color: rgb(22, 119, 255); text-decoration: none; margin-left: 5px; cursor: pointer;"
10978+
>
10979+
<span
10980+
data-slate-node="text"
10981+
>
10982+
<span
10983+
class=" "
10984+
data-be="text"
10985+
data-slate-leaf="true"
10986+
draggable="false"
10987+
>
10988+
<span
10989+
data-slate-string="true"
10990+
>
10991+
remarkjs.md
10992+
</span>
10993+
</span>
10994+
</span>
10995+
</a>
10996+
</div>
1093710997
<div
1093810998
class="ant-md-editor-drag-el empty"
1093910999
data-be="paragraph"

tests/demo/__snapshots__/src/MarkdownEditor/demos/pure.snap

+60
Original file line numberDiff line numberDiff line change
@@ -7251,6 +7251,66 @@
72517251
</span>
72527252
</span>
72537253
</div>
7254+
<div
7255+
class="ant-md-editor-drag-el"
7256+
contenteditable="false"
7257+
data-be="footnoteDefinition"
7258+
data-slate-node="element"
7259+
style="font-size: 12px; margin: 5px 0px; display: flex;"
7260+
>
7261+
1.
7262+
<a
7263+
href="#md-editor-ref1"
7264+
style="color: rgb(22, 119, 255); text-decoration: none; margin-left: 5px; cursor: pointer;"
7265+
>
7266+
<span
7267+
data-slate-node="text"
7268+
>
7269+
<span
7270+
class=" "
7271+
data-be="text"
7272+
data-slate-leaf="true"
7273+
draggable="false"
7274+
>
7275+
<span
7276+
data-slate-string="true"
7277+
>
7278+
remarkjs.md
7279+
</span>
7280+
</span>
7281+
</span>
7282+
</a>
7283+
</div>
7284+
<div
7285+
class="ant-md-editor-drag-el"
7286+
contenteditable="false"
7287+
data-be="footnoteDefinition"
7288+
data-slate-node="element"
7289+
style="font-size: 12px; margin: 5px 0px; display: flex;"
7290+
>
7291+
2.
7292+
<a
7293+
href="#md-editor-ref2"
7294+
style="color: rgb(22, 119, 255); text-decoration: none; margin-left: 5px; cursor: pointer;"
7295+
>
7296+
<span
7297+
data-slate-node="text"
7298+
>
7299+
<span
7300+
class=" "
7301+
data-be="text"
7302+
data-slate-leaf="true"
7303+
draggable="false"
7304+
>
7305+
<span
7306+
data-slate-string="true"
7307+
>
7308+
remarkjs.md
7309+
</span>
7310+
</span>
7311+
</span>
7312+
</a>
7313+
</div>
72547314
<div
72557315
class="ant-md-editor-drag-el empty"
72567316
data-be="paragraph"

0 commit comments

Comments
 (0)