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 35169b4 commit b283772Copy full SHA for b283772
src/markdownRender/extensions/index.ts
@@ -1,11 +1,14 @@
1
-import hljs from 'highlight.js';
+import type * as Hljs from 'highlight.js';
2
+import hljsCore from 'highlight.js/lib/core';
3
import sql from 'highlight.js/lib/languages/sql';
4
import showdown from 'showdown';
5
6
import 'highlight.js/styles/default.css';
7
import '../theme/vs.scss';
8
import '../theme/vs-dark.scss';
9
10
+const hljs = hljsCore as typeof Hljs;
11
+
12
hljs.registerLanguage('sql', sql);
13
14
export default function sqlHighlightExtension(): showdown.ShowdownExtension {
0 commit comments