Skip to content

Commit 19ddf40

Browse files
committed
fixup!
1 parent 3af32a8 commit 19ddf40

File tree

2 files changed

+21
-9
lines changed

2 files changed

+21
-9
lines changed

packages/rehype-shiki/src/index.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ const { shiki, getLanguageDisplayName, highlightToHast, highlightToHtml } =
2323
transformers: [
2424
transformerTwoslash({
2525
langs: ['ts', 'js', 'cjs', 'mjs'],
26+
// Don't show JSDoc
27+
rendererRich: {
28+
jsdoc: false,
29+
},
2630
// Don't throw on errors on untype-able code
2731
throws: false,
2832
}),
Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,28 @@
11
@import '@shikijs/twoslash/style-rich.css';
22

33
.twoslash-popup-container {
4-
> :not(.twoslash-popup-code) {
5-
display: none !important;
6-
}
4+
position: fixed !important;
75

86
.twoslash-popup-code {
9-
> span {
7+
display: flex !important;
8+
flex-wrap: wrap !important;
9+
font-size: small;
10+
11+
span {
1012
display: inline-block !important;
1113
}
1214

13-
display: flex !important;
14-
flex-wrap: wrap !important;
15+
:has(.shiki),
16+
.shiki,
17+
.line::after {
18+
all: unset !important;
19+
}
1520

16-
font-size: small;
21+
.line {
22+
padding: unset !important;
23+
font-weight: bold !important;
24+
word-wrap: break-word !important;
25+
font-size: small !important;
26+
}
1727
}
18-
19-
position: fixed !important;
2028
}

0 commit comments

Comments
 (0)