We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
text
1 parent 3595873 commit 8ebd7dbCopy full SHA for 8ebd7db
CHANGELOG.md
@@ -1,5 +1,9 @@
1
# Unreleased
2
3
+### Bug Fixes
4
+
5
+- The `text` non-highlighted language no longer causes warnings when rendering, #2610.
6
7
## v0.26.1 (2024-06-22)
8
9
### Features
src/lib/utils/highlighter.tsx
@@ -157,7 +157,7 @@ export function getSupportedThemes(): string[] {
157
}
158
159
export function isLoadedLanguage(lang: string): boolean {
160
- return highlighter?.supports(lang) ?? false;
+ return lang === "text" || (highlighter?.supports(lang) ?? false);
161
162
163
export function highlight(code: string, lang: string): string {
0 commit comments