Skip to content

Commit 4727b4e

Browse files
committedApr 13, 2021
Wrap up the twoslash highlights
1 parent bafd032 commit 4727b4e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
 

‎packages/documentation/copy/en/handbook-v2/Basics.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ let msg = "hello there!";
343343
Even though we didn't tell TypeScript that `msg` had the type `string` it was able to figure that out.
344344
That's a feature, and it's best not to add annotations when the type system would end up inferring the same type anyway.
345345

346-
> Note: when you see <pre><code class="query">code comment colored like this</code></pre> it means that we're highlighting what your editor would show you inline. You can get the same experience in the web browser by hovering your mouse over blue-tinted code samples.
346+
> Note: the message bubble inside the code sample above. That is what your editor would show if you had hovered over the word.
347347
348348
## Erased Types
349349

‎packages/typescriptlang-org/src/templates/markdown-twoslash.scss

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ pre {
2727

2828
/* Important to allow the code to move horizontally; */
2929
overflow: auto;
30+
3031
&.shiki {
3132
overflow: initial;
3233

@@ -165,7 +166,7 @@ pre {
165166
background-color: #eeeeee;
166167
position: relative;
167168
top: -7px;
168-
margin-left: 4px;
169+
margin-left: 0.1rem;
169170
/* Edges */
170171
border-left: 1px solid #eeeeee;
171172
border-top: 1px solid #eeeeee;

0 commit comments

Comments
 (0)
Please sign in to comment.