File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,10 @@ export class Workspace {
124
124
span . innerHTML = `${ error . message
125
125
. replace ( / & / g, '&' )
126
126
. replace ( / < / g, '<' )
127
- . replace ( / ` ( .+ ?) ` / g, `<code>$1</code>` ) } <strong>(${ error . code } )</strong>`;
127
+ . replace (
128
+ / ` ( .+ ?) ` / g,
129
+ `<code>$1</code>`
130
+ ) } (<a href="/docs/svelte/compiler-errors#${ error . code } ">${ error . code } </a>)`;
128
131
129
132
return span ;
130
133
}
@@ -142,7 +145,10 @@ export class Workspace {
142
145
span . innerHTML = `${ warning . message
143
146
. replace ( / & / g, '&' )
144
147
. replace ( / < / g, '<' )
145
- . replace ( / ` ( .+ ?) ` / g, `<code>$1</code>` ) } <strong>(${ warning . code } )</strong>`;
148
+ . replace (
149
+ / ` ( .+ ?) ` / g,
150
+ `<code>$1</code>`
151
+ ) } (<a href="/docs/svelte/compiler-warnings#${ warning . code } ">${ warning . code } </a>)`;
146
152
147
153
return span ;
148
154
}
Original file line number Diff line number Diff line change 277
277
padding : 0.2rem 0.4rem ;
278
278
}
279
279
280
- strong {
280
+ a {
281
281
font : var (--sk-font-mono );
282
+ color : inherit;
282
283
font-size : 1em ;
283
- opacity : 0.7 ;
284
+ /* opacity: 0.7; */
285
+ text-decoration : underline;
284
286
}
285
287
}
286
288
}
287
289
}
288
-
289
- & .cm-tooltip-below .cm-tooltip-section {
290
- /* top: 1rem; */
291
- }
292
-
293
- & .cm-tooltip-above .cm-tooltip-section {
294
- /* bottom: 1rem; */
295
- }
296
290
}
297
291
}
You can’t perform that action at this time.
0 commit comments