@redocly/theme 0.21.0 → 0.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/utils/highlight.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ import 'prismjs/components/prism-scala.js';
|
|
|
20
20
|
import 'prismjs/components/prism-sql.js';
|
|
21
21
|
import 'prismjs/components/prism-swift.js';
|
|
22
22
|
import 'prismjs/components/prism-graphql.js';
|
|
23
|
+
import 'prismjs/plugins/treeview/prism-treeview.js';
|
|
23
24
|
/**
|
|
24
25
|
* map language names to Prism.js names
|
|
25
26
|
*/
|
package/lib/utils/highlight.js
CHANGED
|
@@ -47,6 +47,7 @@ require("prismjs/components/prism-scala.js");
|
|
|
47
47
|
require("prismjs/components/prism-sql.js");
|
|
48
48
|
require("prismjs/components/prism-swift.js");
|
|
49
49
|
require("prismjs/components/prism-graphql.js");
|
|
50
|
+
require("prismjs/plugins/treeview/prism-treeview.js");
|
|
50
51
|
const DEFAULT_LANG = 'clike';
|
|
51
52
|
const NEW_LINE_EXP = /\n(?!$)/g;
|
|
52
53
|
Prism.languages.insertBefore('javascript', 'string', {
|
package/package.json
CHANGED
package/src/utils/highlight.ts
CHANGED
|
@@ -21,6 +21,7 @@ import 'prismjs/components/prism-scala.js';
|
|
|
21
21
|
import 'prismjs/components/prism-sql.js';
|
|
22
22
|
import 'prismjs/components/prism-swift.js';
|
|
23
23
|
import 'prismjs/components/prism-graphql.js';
|
|
24
|
+
import 'prismjs/plugins/treeview/prism-treeview.js';
|
|
24
25
|
|
|
25
26
|
const DEFAULT_LANG = 'clike';
|
|
26
27
|
const NEW_LINE_EXP = /\n(?!$)/g;
|