Skip to content

Commit 9fcb584

Browse files
committed
fix #28
1 parent 10c056c commit 9fcb584

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

exampleVault/index.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,12 @@ int main() {
139139
std::cout << "Hello World!";
140140
return 0;
141141
}
142+
```
143+
144+
```SQL
145+
SELECT
146+
department,
147+
MAX(salary) AS maximum_salary
148+
FROM employees
149+
GROUP BY department;
142150
```

src/codemirror/Cm6_ViewPlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ export function createCm6Plugin(plugin: ShikiPlugin) {
243243
return [];
244244
}
245245

246-
const highlight = await plugin.highlighter.getHighlightTokens(content, language);
246+
const highlight = await plugin.highlighter.getHighlightTokens(content, language.toLowerCase());
247247

248248
if (!highlight) {
249249
return [];

0 commit comments

Comments
 (0)