Skip to content
This repository was archived by the owner on Mar 17, 2026. It is now read-only.

Commit 5a1e910

Browse files
authored
Disable code snippet ligatures (#2908)
1 parent f7a8b54 commit 5a1e910

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

apps/web/src/components/Builders/Shared/CodeSnippet.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export function CodeSnippet({ code }: { code: string }) {
5151

5252
return (
5353
<div
54-
className="code-snippet h-full overflow-auto rounded-lg transition-colors"
54+
className="code-snippet h-full overflow-auto rounded-lg transition-colors ligatures-none"
5555
// eslint-disable-next-line react/no-danger -- necessary for shiki
5656
dangerouslySetInnerHTML={htmlContent}
5757
/>

apps/web/tailwind.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,9 @@ module.exports = {
667667
'.scrollbar-gutter-stable': {
668668
'scrollbar-gutter': 'stable',
669669
},
670+
'.ligatures-none': {
671+
'font-variant-ligatures': 'none',
672+
},
670673
});
671674
},
672675
],

0 commit comments

Comments
 (0)