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.
1 parent 56ef081 commit 56af93aCopy full SHA for 56af93a
src/stub.js
@@ -1,11 +1,12 @@
1
import HighlightJS from "./highlight.js";
2
// @ts-ignore
3
-import * as builtIns from "builtInLanguages"
+import * as builtIns from "builtInLanguages";
4
5
const hljs = HighlightJS;
6
7
-for (const languageName of Object.keys(builtIns)) {
8
- hljs.registerLanguage(languageName, builtIns[languageName]);
+for (const key of Object.keys(builtIns)) {
+ const languageName = key.replace("grmr_", "");
9
+ hljs.registerLanguage(languageName, builtIns[key]);
10
}
11
// console.log(hljs.listLanguages());
12
0 commit comments