Skip to content

Commit a383eae

Browse files
author
Shalini Saloni
committed
fix(twoslash): remove deprecated typo class 'twoslash-query-presisted'
Removes the deprecated typo class 'twoslash-query-presisted' from the twoslash renderer, keeping only the correct spelling 'twoslash-query-persisted'. The typo was introduced before v3.17 and has been kept for backward compatibility. Since the official CSS files only use the correct spelling and we're now at v3.19.0, it's safe to remove the deprecated class. Fixes #1
1 parent 28dd090 commit a383eae

File tree

8 files changed

+13
-15
lines changed

8 files changed

+13
-15
lines changed

packages/twoslash/src/renderer-rich.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -410,9 +410,7 @@ export function rendererRich(options: RendererRichOptions = {}): TwoslashRendere
410410
type: 'element',
411411
tagName: 'span',
412412
properties: {
413-
// TODO: `twoslash-query-presisted` was a typo before v3.17. We keep it for backward compatibility.
414-
// We should remove it in the next major version.
415-
class: 'twoslash-hover twoslash-query-persisted twoslash-query-presisted',
413+
class: 'twoslash-hover twoslash-query-persisted',
416414
},
417415
children: hast?.queryCompose
418416
? hast?.queryCompose({ popup, token: node })

packages/twoslash/test/out/markdown-it/highlight-disable-triggers.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/twoslash/test/out/markdown-it/highlight-lines.html

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/twoslash/test/out/markdown-it/works.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/twoslash/test/out/query-offset.ts.html

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/twoslash/test/out/query-offset.ts.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)